Skip to content

beginInclusion for S2 Unauthenticated with no user input #5233

Answered by olavt
olavt asked this question in Q&A
Discussion options

You must be logged in to vote

This worked for me:

	await driver.controller.beginInclusion({
		strategy: InclusionStrategy.Security_S2,
		userCallbacks: {
			grantSecurityClasses(requested) {
				const ig: InclusionGrant = {
					securityClasses: [SecurityClass.S2_Unauthenticated],
					clientSideAuth: false,
				};
				return Promise.resolve(ig);
			},
			validateDSKAndEnterPIN(dsk) {
				return Promise.resolve("");
			},
			abort() {
			},
		},
	});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olavt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant