GithubHelp home page GithubHelp logo

dan-snelson / invitation-only-betas Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 19.53 MB

As a follow-up to "Your Internal Beta Test Program: Opt-in, Opt-out via Self Service," learn how to architect invitation-only betas for your elite testers for when your organization pilots new endpoint security solutions, like Jamf Protect, while maintaining your current offerings.

License: MIT License

Shell 100.00%

invitation-only-betas's Introduction

invitation-only-betas's People

Contributors

dan-snelson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

invitation-only-betas's Issues

Bug Report: Script gets Bearer Token, but doesn't use it.

Describe the bug
The script Extension-Attribute-Update-Encrypted-Script-Parameters-Bearer-Token.sh gets a bearer token and tests it and invalidates it, but when the API data is built the script uses User:Pass to get information.

To Reproduce
Turn off Basic Authentication for Classic API and this script breaks. The EA never gets updated.

Expected behavior
I expected the EA to be updated.

Code/log output
LINE 78:
apiRead=$( curl -H "Accept: text/xml" -sf --header "Authorization: Bearer ${apiBearerToken}" "${apiURL}"/JSSResource/computers/udid/"${computerUDID}"/subset/extension_attributes | xmllint --format - | grep -A3 "${eaName}" | awk -F'>|<' '/value/{print $3}' | tail -n 1 )

LINE 258:
apiPost=$(curl -H "Content-Type: text/xml" -sfu "${apiUsername}":"${apiPassword}" "${apiURL}"/JSSResource/computers/udid/"${computerUDID}" -d "${apiData}" -X PUT)

ERROR:
Script result: -:1: parser error : Document is empty

^
-:1: parser error : Document is empty

^
Version 1.4; apiBearerTokenCheck: 200; Beta Testing Program Status changed to None; apiBearerTokenCheck: 200; Bearer Token still valid; invalidate; Bearer Token invalidated; End-of-line.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS version 13.6.6
  • Script version 1.4

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.