-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Injiweb 1203] get the authorization server endpoint from its well-known endpoint #229
base: develop
Are you sure you want to change the base?
[Injiweb 1203] get the authorization server endpoint from its well-known endpoint #229
Conversation
PuBHARGAVI
commented
Jan 8, 2025
- Rather than appending /authorize to the authorization server host url fetch the Authorization server endpoint from the server well-known itself
- Handled the below error scenarios :
- If the required grant_types are not supported by the authorization server then show the error screen
- If the internet is turned off when calling the authorization server well-known endpoint show the error toaster saying service is unavailable.
…own endpoint instead of appending /endpoint to authorizationServer Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
…equired grant types and use the predefined list of grant types if server doesn't have grant-types field in wellknown endpoint Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
…enario in all languages Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
…not available when calling the authorization server wellknown endpoint Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
@@ -31,7 +31,7 @@ describe('Testing API Class', () => { | |||
}); | |||
|
|||
test('Check mimotoHost property', () => { | |||
expect(apiModule.api.mimotoHost).toBe('https://api.collab.mossip.net/v1/mimoto'); | |||
expect(apiModule.api.proxyServerHost).toBe('https://api.collab.mossip.net/v1/mimoto'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PuBHARGAVI we dont have now proxy server. is this still hold true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed this back to mimotoHost
…-auth-endpoint-from-wellknown
…the requests from all origins and proxy-server code is removed Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
inji-web/src/utils/api.ts
Outdated
static fetchTokenAnddownloadVc: ApiRequest = { | ||
url: () => api.mimotoHost + `/credentials/download`, | ||
url: () => api.proxyServerHost + `/credentials/download`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check here too for mimotoHost?
inji-web-proxy/proxy_server.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this folder from your local now.
…iles Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>