module Microsoft::MobileOAuth

Defined in:

microsoft/mobile_oauth.cr

Constant Summary

CLIENT_ID = "e550efe8-765e-41aa-a7cf-9bcaaa82d2b9"

Class Method Summary

Class Method Detail

def self.login!(on_success : Proc(String, Nil) | Nil = nil) : Token #

[View source]
def self.prompt_for_login!(on_success : Proc(String, Nil) | Nil = nil) : Token #

Prompts the user to follow Microsoft's Device Flow for OAuth. https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code


[View source]