C# 클래스 TestSite.UmbracoAuthTokenServerExtensions

Extension methods to configure Umbraco for issuing and processing tokens for authentication
파일 보기 프로젝트 열기: mzajkowski/umbraco-rest-api-playground

공개 메소드들

메소드 설명
UseUmbracoBackOfficeTokenAuth ( this app, Umbraco.IdentityExtensions.BackOfficeAuthServerProviderOptions backofficeAuthServerProviderOptions = null ) : void

Configures Umbraco to issue and process authentication tokens

This is a very simple implementation of token authentication, the expiry below is for a single day and with this implementation there is no way to force expire tokens on the server however given the code below and the additional callbacks that can be registered for the BackOfficeAuthServerProvider these types of things could be implemented. Additionally the BackOfficeAuthServerProvider could be overridden to include this functionality instead of coding the logic into the callbacks.

메소드 상세

UseUmbracoBackOfficeTokenAuth() 공개 정적인 메소드

Configures Umbraco to issue and process authentication tokens
This is a very simple implementation of token authentication, the expiry below is for a single day and with this implementation there is no way to force expire tokens on the server however given the code below and the additional callbacks that can be registered for the BackOfficeAuthServerProvider these types of things could be implemented. Additionally the BackOfficeAuthServerProvider could be overridden to include this functionality instead of coding the logic into the callbacks.
public static UseUmbracoBackOfficeTokenAuth ( this app, Umbraco.IdentityExtensions.BackOfficeAuthServerProviderOptions backofficeAuthServerProviderOptions = null ) : void
app this
backofficeAuthServerProviderOptions Umbraco.IdentityExtensions.BackOfficeAuthServerProviderOptions
리턴 void