mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
[INJIMOB-3193]add preauth and credential offer support (#1949)
[INJIMOB-3058]temp commit2 [INJIMOB-3058]temp commit2 [INJIMOB-3058] add support for pre-auth flow by credential-offer [INJIMOB-3187] animo working chcekpoint Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
This commit is contained in:
@@ -41,6 +41,7 @@ export const API_URLS: ApiUrls = {
|
||||
buildURL: (authorizationServerUrl: string): string =>
|
||||
`${authorizationServerUrl}/.well-known/oauth-authorization-server`,
|
||||
},
|
||||
|
||||
allProperties: {
|
||||
method: 'GET',
|
||||
buildURL: (): `/${string}` => '/v1/mimoto/allProperties',
|
||||
@@ -115,6 +116,14 @@ export const API = {
|
||||
);
|
||||
return response.response.issuers || [];
|
||||
},
|
||||
|
||||
fetchIssuerConfig: async (issuerId: string) => {
|
||||
const response = await request(
|
||||
API_URLS.issuerConfig.method,
|
||||
API_URLS.issuerConfig.buildURL(issuerId),
|
||||
);
|
||||
return response.response;
|
||||
},
|
||||
fetchIssuerWellknownConfig: async (credentialIssuer: string) => {
|
||||
const response = await request(
|
||||
API_URLS.issuerWellknownConfig.method,
|
||||
@@ -122,17 +131,7 @@ export const API = {
|
||||
);
|
||||
return response;
|
||||
},
|
||||
fetchAuthorizationServerMetadata: async (authorizationServerUrl: string) => {
|
||||
const response = await request(
|
||||
API_URLS.authorizationServerMetadataConfig.method,
|
||||
API_URLS.authorizationServerMetadataConfig.buildURL(
|
||||
authorizationServerUrl,
|
||||
),
|
||||
undefined,
|
||||
'',
|
||||
);
|
||||
return response;
|
||||
},
|
||||
|
||||
fetchAllProperties: async () => {
|
||||
const response = await request(
|
||||
API_URLS.allProperties.method,
|
||||
|
||||
Reference in New Issue
Block a user