Add AUTH0_SCOPE to all token request snippets#1
Open
nicogarcia wants to merge 6 commits intomchang16-auth:quickstart/loginfrom
Open
Add AUTH0_SCOPE to all token request snippets#1nicogarcia wants to merge 6 commits intomchang16-auth:quickstart/loginfrom
nicogarcia wants to merge 6 commits intomchang16-auth:quickstart/loginfrom
Conversation
Adds scope parameter to the client_credentials grant in all get-token and combined m2m snippets (curl, node, python, go, java, csharp, php, ruby) and the YAML definition (input, placeholder, env snippet).
Replaces literal YAML placeholder with language-native env var reads (API_ENDPOINT) in all call-api and m2m combined snippets. Adds API_ENDPOINT to the env snippet in the YAML definition. Snippets are now fully self-contained and runnable with just env vars. Also adds test/TESTING.md documenting a docker-compose live integration test approach.
…ions Replace old split get-token/call-api/combined snippets with single production-ready scripts per language (node, go, java, python, ruby, php, csharp). Each script: progress logs, token expiry display, scopes, token_type from response, caching comment. Add run/ directory with per-language execution instructions. Restructure YAML: OS-tabbed env vars, grouped code sources, run step. Remove old 01-Login sample app and legacy snippets.
5286cb5 to
a3e100a
Compare
- Replace $$""" raw string literal with concatenation (hljs v10 chokes on C# 11 syntax) - Change csharp language to cs for hljs compatibility - Add technology field to m2m script snippets for top-level tab filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scopeparameter (AUTH0_SCOPEenv var) to the client_credentials grant in all 16 language snippets (get-token + combined m2m variants)auth0Scopeinput,%AUTH0_SCOPE%placeholder, and env snippet entryTest plan
npm run generate-definitionsand verify outputlinesarrays in the generated JSON