Skip to content
Snippets Groups Projects

fix(view): open new views as tabs + show Getting Started button by default

1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -159,12 +159,12 @@ export default class KeycloakOAuth2DeviceFlowConnection {
userAuthenticationRequestResponseCode = userAuthenticationRequestResponse.status;
switch (userAuthenticationRequestResponseCode) {
case HttpStatusCode.BAD_REQUEST: {
await this.handleCreateUserAuthenticationBadRequest(userAuthenticationRequestResponse);
await this.onUserAuthenticationFailure(userAuthenticationRequestResponse);
break;
}
case HttpStatusCode.OK: {
await this.handleCreateUserAuthenticationSuccessRequest(userAuthenticationRequestResponse);
await this.onUserAuthenticationSuccess(userAuthenticationRequestResponse);
break;
}
@@ -175,7 +175,7 @@ export default class KeycloakOAuth2DeviceFlowConnection {
}
}
private async handleCreateUserAuthenticationBadRequest(userAuthenticationRequestResponse: Response) {
private async onUserAuthenticationFailure(userAuthenticationRequestResponse: Response) {
const badRequestResponse = (await userAuthenticationRequestResponse.json()) as FailedAuthenticationReponseData;
const errorCode = TokenFetchErrorCode[badRequestResponse.error!];
switch (errorCode) {
@@ -200,7 +200,7 @@ export default class KeycloakOAuth2DeviceFlowConnection {
}
}
private async handleCreateUserAuthenticationSuccessRequest(userAuthenticationRequestResponse: Response) {
private async onUserAuthenticationSuccess(userAuthenticationRequestResponse: Response) {
const successRequestResponse =
(await userAuthenticationRequestResponse.json()) as SuccessfulAuthenticationResponseData;
this.accessToken = successRequestResponse.access_token ?? '';
Loading