Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK-2370: Added support for Advanced Identity Profiles Requirements f… #302

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

fofiuiancu
Copy link
Contributor

…or Share V2

Added

  • Add subject and identityProfileRequirements to Share V2 Scenario generation, callable with:
advancedIdentityProfile := []byte(`{
		"profiles": [
			{
				"trust_framework": "YOTI_GLOBAL",
				"schemes": [
					{
						"label": "LB321",
						"type": "IDENTITY",
						"objective": "AL_L1"
					}
				]
			}
		]
}`)

policy, err := (&dynamic.PolicyBuilder{}).
	WithAdvancedIdentityProfileRequirements(advancedIdentityProfile).
	Build()
if err != nil {
	return err
}

Example available when running the profile example project at https://localhost:8080

Copy link
Contributor

@mehmet-yoti mehmet-yoti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

_examples/digitalidentity/advancedIdentityProfile.go Outdated Show resolved Hide resolved
_examples/digitalidentity/receipt.go Outdated Show resolved Hide resolved
@fofiuiancu fofiuiancu merged commit 7dc79f0 into development Jan 8, 2024
7 of 8 checks passed
@fofiuiancu fofiuiancu deleted the SDK-2370-advanced-profiles-sharev2 branch January 8, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants