README needs to explain Machine to Machine Applications authorization
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 50/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- authorization
Research direction
Update the README section that mentions authorizing an application for the Management API. Start by reading the existing authorization guidance and compare it with the issue's described Machine to Machine Applications path. Done means the README explains where to authorize the application and helps prevent the reported access_denied error.
Written by the indexing model from the issue text.
Description
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
When trying to create a client and having the proper grants enabled for my application, I still came across this error:
{"error":"access_denied","error_description":"Client is not authorized to access \"https://dev-x3r4mfeuopyc566w.us.auth0.com/api/v2/\". You need to create a \"client-grant\" associated to this API. See: https://auth0.com/docs/api/v2#!/Client_Grants/post_client_grants"} (Auth0::AccessDenied)
This was my implementation of the client:
client = Auth0Client.new(
client_id: Rails.application.credentials.auth_zero.client_id,
client_secret: Rails.application.credentials.auth_zero.secret,
domain: Rails.application.credentials.auth_zero.domain,
)
I re-read the README and missed this part: "and that the application is authorized for the Management API". I assumed that enabling the grant did this as well. After doing some research, I came across this issue that explained the need to authorize the application under "Machine to Machine Applications" in APIS.
This should probably be added to the README as:
To authorize your application for the Management API, please visit Applications > APIs > Machine to Machine Applications and then toggle the Authorize button for the application you're integrating with.
Reproduction
- Configure the grant for the application
- Create the Ruby client
- [Failure]
Additional context
No response
ruby-auth0 version
5.17.0
Ruby version
3.2.2
- Dominant language
- Ruby
- Stars
- 205
- Forks
- 148
- Avg merge
- 13h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from auth0/ruby-auth0
-
Model#initialize drops every `false` value — booleans are silently lost on requests and responsesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
auth0/ruby-auth0#800 · 1 comment ·
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 45/100
auth0/ruby-auth0#709 ·
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 32/100
auth0/ruby-auth0#606 · 2 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
auth0/ruby-auth0#556 · 2 comments ·
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
auth0/ruby-auth0#500 · 1 comment ·
All issues in auth0/ruby-auth0
Similar issues
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
OSCON 2016Opencontent
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rubyevents/rubyevents#2148 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
we-promise/sure#3838 · 2 comments ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ManageIQ/manageiq-ui-classic#10341 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
rubocop/ruby-style-guide#984 ·