C# 클래스 MobileAppAPIHelper, Rockit

파일 보기 프로젝트 열기: NewPointe/Rockit

공개 메소드들

메소드 설명
APIKey ( ) : string

This will pull the api key generated in rock. The name of it needs to be AppRestKey. It can be changed whenever from the website, this function will pull it based on the name in case the key becomes compromised if it can't find it, it will return empty string and the request will return unauthorized

ValidateAppToken ( HttpRequestMessage request ) : bool

비공개 메소드들

메소드 설명
ValidateToken ( string token ) : bool

this just verifies (loosely) that the request came from the app. By matching the key stored in the app's code.

메소드 상세

APIKey() 공개 정적인 메소드

This will pull the api key generated in rock. The name of it needs to be AppRestKey. It can be changed whenever from the website, this function will pull it based on the name in case the key becomes compromised if it can't find it, it will return empty string and the request will return unauthorized
public static APIKey ( ) : string
리턴 string

ValidateAppToken() 공개 정적인 메소드

public static ValidateAppToken ( HttpRequestMessage request ) : bool
request System.Net.Http.HttpRequestMessage
리턴 bool