Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

PuBHARGAVI
Copy link

  • 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 :
    1. If the required grant_types are not supported by the authorization server then show the error screen
    2. 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');

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?

Copy link
Author

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

…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>
static fetchTokenAnddownloadVc: ApiRequest = {
url: () => api.mimotoHost + `/credentials/download`,
url: () => api.proxyServerHost + `/credentials/download`,

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?

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>
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.

2 participants