Open piyushsharma21 opened 2 months ago
This could be useful. I have no experience with AWS Cognito but if its just an auth client then it can probably be configured like this.
ChatGPT says it can help: https://chatgpt.com/share/da02adc4-3c77-4214-aea0-4b45569a1b81
Hello @Fajfa , thanks for your response! I’m successfully using AWS Cognito for authentication, but when I use the Cognito access token for Corteza API calls (like reading records), I encounter an "invalid token" error. Could you please guide me on how to obtain a Corteza access token using Cognito?
Update:
If you can suggest me any other way (or share sample curl) to get user specific access & refresh token using API call, that will be a great help. I tried grant type authorization_code
, but don't know how to use this in API calls.
@piyushsharma21 can you use it as an OIDC?
To access stuff in Corteza, you'll need to use an access token issued by Corteza. If you want to use some external identity provider which we don't support out of the box, you'll need to configure an OIDC under /admin/system/settings
in your admin web application.
hi @tjerman thanks for replying,
Yes, I’m currently using an OIDC setup. My other application also uses AWS Cognito (with the same user pool and client as Corteza). I’m exploring a way to generate Corteza tokens using Cognito, so I can streamline token management and avoid handling multiple tokens.
Additionally, could you suggest a way to terminate a Corteza user session upon logout using API?
I’m exploring a way to generate Corteza tokens using Cognito
If you've set Cognito as an OIDC then there isn't much extra work to do -- the user clicks on the correct button in the login screen and then tokens are created automagically.
Additionally, could you suggest a way to terminate a Corteza user session upon logout using API
hm hm hm can't recall the endpoint so probably best you check the network tab and see what requests are sent when you click the logout button.
Stale issue message
Discussed in https://github.com/orgs/cortezaproject/discussions/1888