Commit 04c1b989 authored by Yunhua Koglin's avatar Yunhua Koglin Committed by Rucha Deshpande
Browse files

update seistore

parent 0d24637c
......@@ -15,8 +15,15 @@
import { SubProjectModel } from '../../../services/subproject';
import { AbstractSeistore, SeistoreFactory } from '../../seistore';
import { Utils } from '../../../shared';
@SeistoreFactory.register('aws')
export class AwsSeistore extends AbstractSeistore {
public checkExtraSubprojectCreateParams(requestBody: any, subproject: SubProjectModel) { return; }
public async getEmailFromTokenPayload(
userCredentials: string, internalSwapForSauth: boolean): Promise<string> { // swapSauthEmailClaimToV2=true
const payload = Utils.getPayloadFromStringToken(userCredentials);
const email = payload.username;
return internalSwapForSauth ? Utils.checkSauthV1EmailDomainName(email) : email;
}
}
......@@ -16,6 +16,7 @@
import { Config } from '../cloud';
export class Utils {
public static getPropertyFromTokenPayload(base64jwtpayload: string, property: string): string {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment