C# 클래스 Facebook.CanvasAuthContext

Exposes canvas based authentication model. Fits well for IFrame apps.
상속: AuthContextBase, IAuthContext
파일 보기 프로젝트 열기: bbyk/graph.net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EmptyParams string>.Dictionary

Private Properties

프로퍼티 타입 설명
GetSignedRequest JsonObject
ParseSignedRequest JsonObject
StripAwayProhibitedKeys string
ToFacebookSession Session
ValidateSession Session

공개 메소드들

메소드 설명
Authenticate ( [ context ) : bool

Authenticates current request. Returns true if the request is authenticated and an instance of Session is set; otherwise false.

CanvasAuthContext ( [ bindings ) : System

Initializes a new CanvasAuthContext object with specified bindings.

GetLoginUrl ( Uri nextUrl ) : string

See IAuthContext.GetLoginUrl(Uri, Dictionary{String, String}).

GetLoginUrl ( Uri nextUrl, string>.Dictionary @params ) : string

See IAuthContext.GetLoginUrl(Uri, Dictionary{String, String}).

GetLoginUrl ( Uri nextUrl, LoginParams @params ) : string

See IAuthContext.GetLoginUrl(Uri, LoginParams).

GetLogoutUrl ( Uri nextUrl ) : string

See IAuthContext.GetLogoutUrl

GetLogoutUrl ( Uri nextUrl, string>.Dictionary @params ) : string

See IAuthContext.GetLogoutUrl

RedirectFromIFrame ( [ context, [ url ) : void

Generates and writes to response a javascript code to redirect to a url from iframe so that the url will be in browser's address bar. Calling the method completes current request.

ResolveCanvasPageUrl ( [ relativeUrl ) : string

Generates absolute url for a relative url on facebook application canvas (e.g. http://apps.facebook.com/graphdotnet/default.aspx).

ResolveSiteUrl ( [ relativeUrl ) : string

Generates absolute url for a relative url on the site (e.g. http://localhost/graph.net/default.aspx).

비공개 메소드들

메소드 설명
GetSignedRequest ( NameValueCollection request ) : JsonObject
ParseSignedRequest ( string signedRequest ) : JsonObject
StripAwayProhibitedKeys ( Uri currentUrl ) : string
ToFacebookSession ( JsonObject data ) : Session
ValidateSession ( JsonObject data ) : Session

메소드 상세

Authenticate() 공개 메소드

Authenticates current request. Returns true if the request is authenticated and an instance of Session is set; otherwise false.
is null.
public Authenticate ( [ context ) : bool
context [ the current request context information.
리턴 bool

CanvasAuthContext() 공개 메소드

Initializes a new CanvasAuthContext object with specified bindings.
is null.
public CanvasAuthContext ( [ bindings ) : System
bindings [ Application facebook bindings: appid, secret, site url, canvas page.
리턴 System

GetLoginUrl() 공개 메소드

See IAuthContext.GetLoginUrl(Uri, Dictionary{String, String}).
is null.
public GetLoginUrl ( Uri nextUrl ) : string
nextUrl System.Uri
리턴 string

GetLoginUrl() 공개 메소드

See IAuthContext.GetLoginUrl(Uri, Dictionary{String, String}).
is null.
public GetLoginUrl ( Uri nextUrl, string>.Dictionary @params ) : string
nextUrl System.Uri
@params string>.Dictionary
리턴 string

GetLoginUrl() 공개 메소드

See IAuthContext.GetLoginUrl(Uri, LoginParams).
is null.
public GetLoginUrl ( Uri nextUrl, LoginParams @params ) : string
nextUrl System.Uri
@params LoginParams
리턴 string

GetLogoutUrl() 공개 메소드

See IAuthContext.GetLogoutUrl
is null.
public GetLogoutUrl ( Uri nextUrl ) : string
nextUrl System.Uri
리턴 string

GetLogoutUrl() 공개 메소드

See IAuthContext.GetLogoutUrl
is null.
public GetLogoutUrl ( Uri nextUrl, string>.Dictionary @params ) : string
nextUrl System.Uri
@params string>.Dictionary
리턴 string

RedirectFromIFrame() 공개 정적인 메소드

Generates and writes to response a javascript code to redirect to a url from iframe so that the url will be in browser's address bar. Calling the method completes current request.
either or is null.
public static RedirectFromIFrame ( [ context, [ url ) : void
context [ Http context the of which is used to issue the js.
url [ an url to redirect to.
리턴 void

ResolveCanvasPageUrl() 공개 메소드

Generates absolute url for a relative url on facebook application canvas (e.g. http://apps.facebook.com/graphdotnet/default.aspx).
is null.
public ResolveCanvasPageUrl ( [ relativeUrl ) : string
relativeUrl [ a relative url to convert to absolute (e.g. ~/default.aspx).
리턴 string

ResolveSiteUrl() 공개 메소드

Generates absolute url for a relative url on the site (e.g. http://localhost/graph.net/default.aspx).
is null.
public ResolveSiteUrl ( [ relativeUrl ) : string
relativeUrl [ a relative url to convert to absolute (e.g. ~/default.aspx).
리턴 string

프로퍼티 상세

EmptyParams 공개적으로 정적으로 프로퍼티

public static Dictionary EmptyParams
리턴 string>.Dictionary