Having a centralized auth function that generates and set a global module variable with the access token allow a single-auth strategy for the SDK, allowing the user to use any other function on the SDK without needing to worry of authenticating a second time, or pass a context around to perform multiple operations withing Edgio's REST API.
Proposed Solution
As a developer, I want to be able to be able to authenticate to Edgio's REST API with my API Client's credentials and generate my access token to be able to use all packages available on 42dx/edgio-go-sdk.
Acceptance Criteria
[x] Edgio's REST API Auth function implementing and working
[x] Edgio's REST API Access token being generated and saved to a package's variable to be used by other functions
[x] Implement app.cache+app.cache.purge+app.waf+app.waf:edit+app.waf:read+app.accounts+app.config (all scopes) as default scope value
[x] Implement https://id.edgio.app/connect/token as default auth URL
Description
Having a centralized auth function that generates and set a global module variable with the access token allow a single-auth strategy for the SDK, allowing the user to use any other function on the SDK without needing to worry of authenticating a second time, or pass a context around to perform multiple operations withing Edgio's REST API.
Proposed Solution
As a developer, I want to be able to be able to authenticate to Edgio's REST API with my API Client's credentials and generate my access token to be able to use all packages available on 42dx/edgio-go-sdk.
Acceptance Criteria
app.cache+app.cache.purge+app.waf+app.waf:edit+app.waf:read+app.accounts+app.config
(all scopes) as default scope valuehttps://id.edgio.app/connect/token
as default auth URLReferences
Code of Conduct
Upvote & Fund