[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:
abhip2565
2025-06-04 14:46:07 +05:30
committed by GitHub
parent ddf5244f32
commit bd90b342e0
63 changed files with 3510 additions and 2063 deletions

View File

@@ -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,