User Identity Provider

IIdentityProviderService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Identity provider service

Events

Event
Type
Description

Authenticating

EventHandler<AuthenticatingEventArgs>

Fired prior to an authentication event

Authenticated

EventHandler<AuthenticatedEventArgs>

Fired after an authentication decision being made

Operations

Operation
Response/Return
Input/Parameter
Description

GetIdentity

IIdentity

String userName

Retrieves an identity from the object

GetIdentity

IIdentity

Guid sid

Retrieves an identity from the object

CreateIdentity

IIdentity

String userName String password IPrincipal principal Nullable<Guid> withSid

Create a basic identity in the provider

Authenticate

IPrincipal

String userName String password IEnumerable<IClaim> clientClaimAssertions IEnumerable<String> demandedScopes

Authenticate the user creating an identity

Authenticate

IPrincipal

String userName String password String tfaSecret IEnumerable<IClaim> clientClaimAssertions IEnumerable<String> demandedScopes

Authenticate the user creating an identity

ReAuthenticate

IPrincipal

IPrincipal principal

Recheck the authentication of an already authenticated .

ChangePassword

void

String userName String newPassword IPrincipal principal Boolean isSynchronizationOperation

Change user password

DeleteIdentity

void

String userName IPrincipal principal

Delete an identity

SetLockout

void

String userName Boolean lockout IPrincipal principal

Set lockout

AddClaim

void

String userName IClaim claim IPrincipal principal Nullable<TimeSpan> expiry

Adds a claim to the specified user account

RemoveClaim

void

String userName String claimType IPrincipal principal

Removes a claim from the specified user account

GetClaims

IEnumerable<IClaim>

String userName

Get all active claims for the specified user

GetSid

Guid

String userName

Get the SID for the named user

GetAuthenticationMethods

AuthenticationMethod

String userName

Gets the applicable authentication methods from the identity provider for

ExpirePassword

void

String userName IPrincipal principal

Indicates that the password for the should be immediately expired (user must change password at next login)

Implementations

BridgedIdentityProvider - (SanteDB.Client)

Represents an identity provider which bridges local and upstream

Service Registration

UpstreamIdentityProvider - (SanteDB.Client)

Represents an implementation of the IIdentityProviderService which uses an upstream oauth server

Service Registration

AdoIdentityProvider - (SanteDB.Persistence.Data)

An identity provider implemented for .NET

Service Registration

Example Implementation

References

Last updated

Was this helpful?