Skip to content

Conversation

@vyerawar-gfm
Copy link

No description provided.

@vyerawar-gfm vyerawar-gfm requested a review from tusharpari June 15, 2022 14:03
@vyerawar-gfm
Copy link
Author

vyerawar-gfm commented Jun 15, 2022

We can pass okta generated access token to call endpoints
classy.me.retrieve({ token: { // Okta generated access token access_token: access_token, is_okta_token: true } })


const requestParams = {
baseUrl: this.baseUrl,
baseUrl: baseUrl ? baseUrl : this.baseUrl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this.baseUrl get set? I'd prefer that we update that value in the appropriate place if config.oktaBaseUrl is passed in.

Copy link
Author

@vyerawar-gfm vyerawar-gfm Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.baseUrl is set in src/ClassyResource/main.js. In that we are not getting request payload to check is_okta_token flag.
I am removing this change from here and updating the this.baseUrl value in src/ClassyResource/createMethod.js file. I have updated the code, please review.

@vyerawar-gfm vyerawar-gfm requested a review from ESoch June 16, 2022 15:39
@ESoch
Copy link
Contributor

ESoch commented Jun 17, 2022

High level these changes look good. We'd want to make sure we have documentation that details what we're doing and why in the README and also comments in the code.


I'm going to hold off on "approving" for now. We'll want to look into how we can potentially publish your fork to our private registry so that we can do tests before we merge.

@vyerawar-gfm
Copy link
Author

High level these changes look good. We'd want to make sure we have documentation that details what we're doing and why in the README and also comments in the code.

I'm going to hold off on "approving" for now. We'll want to look into how we can potentially publish your fork to our private registry so that we can do tests before we merge.

Hi @ESoch
README shows all related to app token, there is no anything related to member token and we have updated this for member token.
Also the changes that we are making are part of internal requirements. Can we discuss this with Kate, Arijeet, Stephan to decide if we want this information to be public.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants