struct GitHub::OAuth::State

Overview

Protects against cross-site request forgery attacks.

Defined in:

github/oauth.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(user_repository_subdomain : String, path : String, random : String = Random::Secure.urlsafe_base64) #

[View source]

Class Method Detail

def self.from_string(str : String) #

[View source]

Instance Method Detail

def get_access_token(code : String) : String #

Returns an access token.


[View source]
def path : String #

[View source]
def random : String #

[View source]
def user_repository_subdomain : String #

[View source]
def value : String #

[View source]