test: Add IDP test for clients with a WebID

This commit is contained in:
Joachim Van Herwegen
2022-02-14 13:43:54 +01:00
parent ce754c119f
commit 35e7e0d447
4 changed files with 114 additions and 541 deletions

View File

@@ -74,11 +74,12 @@ export class IdentityTestState {
* Initializes an authentication session and stores the relevant cookies for later re-use.
* All te relevant links from the login page get extracted.
*/
public async startSession(): Promise<string> {
public async startSession(clientId?: string): Promise<string> {
let nextUrl = '';
await this.session.login({
redirectUrl: this.redirectUrl,
oidcIssuer: this.oidcIssuer,
clientId,
handleRedirect(data): void {
nextUrl = data;
},