Skip to content

Commit

Permalink
Merge pull request #73 from autodesk-platform-services/release-V1
Browse files Browse the repository at this point in the history
Keep Main branch updated with Release branch
  • Loading branch information
sajith-subramanian authored Dec 11, 2024
2 parents 2194f25 + aabaf5c commit 4a4e0a7
Show file tree
Hide file tree
Showing 651 changed files with 3,047 additions and 1,831 deletions.
7 changes: 0 additions & 7 deletions Authentication/source/api.ts

This file was deleted.

1 change: 0 additions & 1 deletion Authentication/source/custom-code/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions Authentication/source/model/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions authentication/source/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* tslint:disable */
/* eslint-disable */


export * from './api/tokenApi';
export * from './api/usersApi';

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResponse, ApsServiceRequestConfig, SdkManager } from "@aps_sdk/autodesk-sdkmanager";
import { ApiResponse, ApsServiceRequestConfig, SdkManager, SdkManagerBuilder } from "@aps_sdk/autodesk-sdkmanager";
import { TokenApi, UsersApi } from "../api";
import { GrantType, IntrospectToken, Jwks, OidcSpec, ResponseType, Scopes, ThreeLeggedToken, TokenTypeHint, TwoLeggedToken, UserInfo } from "../model";

Expand All @@ -9,9 +9,12 @@ export class AuthenticationClient {
public usersApi: UsersApi


constructor(sdkManager: SdkManager) {
this.tokenApi = new TokenApi(sdkManager);
this.usersApi = new UsersApi(sdkManager);
constructor(optionalArgs?: { sdkManager?: SdkManager }) {
if (!optionalArgs?.sdkManager) {
(optionalArgs ??= {}).sdkManager = SdkManagerBuilder.create().build();
}
this.tokenApi = new TokenApi(optionalArgs.sdkManager);
this.usersApi = new UsersApi(optionalArgs.sdkManager);
}

//#region UsersApi
Expand Down Expand Up @@ -65,7 +68,7 @@ export class AuthenticationClient {
*/

public authorize(clientId: string, responseType: ResponseType, redirectUri: string, scopes: Array<Scopes>, optionalArgs?: { state?: string, nonce?: string, responseMode?: string, prompt?: string, authoptions?: string, codeChallenge?: string, codeChallengeMethod?: string }): string {
const url = this.tokenApi.authorize(clientId, responseType, redirectUri, optionalArgs?.state, optionalArgs?.nonce, scopes, optionalArgs?.responseMode, optionalArgs?.prompt, optionalArgs?.authoptions, optionalArgs?.codeChallenge, optionalArgs?.codeChallengeMethod);
const url = this.tokenApi.authorize(clientId, responseType, redirectUri,optionalArgs?.nonce, optionalArgs?.state, scopes, optionalArgs?.responseMode, optionalArgs?.prompt, optionalArgs?.authoptions, optionalArgs?.codeChallenge, optionalArgs?.codeChallengeMethod);
return url;
}

Expand Down Expand Up @@ -213,4 +216,4 @@ export class AuthenticationClient {



}
}
1 change: 1 addition & 0 deletions authentication/source/custom-code/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './authenticationClient';
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions authentication/source/model/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export * from './grantType';
export * from './introspectToken';
export * from './jwks';
export * from './jwksKey';
export * from './oidcSpec';
export * from './responseType';
export * from './scopes';
export * from './threeLeggedToken';
export * from './tokenTypeHint';
export * from './twoLeggedToken';
export * from './userInfo';
export * from './userInfoAddress';
export * from './userInfoSocialUserinfoList';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */

import { JwksKey } from './jwks-key';
import { JwksKey } from './jwksKey';

/**
* Represents a successful response to a Get JWKS operation.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */

import { UserInfoAddress } from './user-info-address';
import { UserInfoSocialUserinfoList } from './user-info-social-userinfo-list';
import { UserInfoAddress } from './userInfoAddress';
import { UserInfoSocialUserinfoList } from './userInfoSocialUserinfoList';

/**
* Represents a successful response to a Get User Info operation.
Expand Down
Loading

0 comments on commit 4a4e0a7

Please sign in to comment.