Files
inji-wallet/screens/Issuers
KiruthikaJeyashankar b68c69151d [INJIMOB-2369] authorization endpoint discovery through auth server wellknown (#1706)
* [INJIMOB-2369] get authorization endpoint from auth server wellknown

Replace hardcoded authorization endpoint (authorization_servers[0] + '/authorize') to fetching from oauth-authorization-server well-known

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2369] handle error scenarios for authz url discovery

For getting the authorization_endpoint as per Wallet's support, as of now we are getting the first entry of authorization_server and fetching the authorization server metadata. In this metadata if grant type is not authorization_code, its considered as error scenario

In case of error while fetching authorization endpoint from Authorization server,
- Network error -> No internet error screen
- oauth-authorization-server well-known's supported grant types is not supported by Wallet -> Grant type not supported error
- Others -> Generic error screen

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2369] add locales support for grantTypeNotSupperted error

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2369]: remove unused url

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-2369] modify cache key of issuer authorization server metadata

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

---------

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
Co-authored-by: Alka Prasad <prasadalka1998@gmail.com>
2024-11-29 15:42:04 +05:30
..