Documentation
¶
Index ¶
Constants ¶
const AzureCLIClientID = "04b07795-8ddb-461a-bbee-02f9e1bf7b46"
AzureCLIClientID is the well-known public client ID used by Azure CLI. No app registration required — works across all tenants without admin consent.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicrosoftDeviceFlow ¶
type MicrosoftDeviceFlow struct {
DeviceCode string
UserCode string
VerificationURI string
ExpiresAt time.Time
Interval int
// contains filtered or unexported fields
}
MicrosoftDeviceFlow holds state for an in-progress device code flow.
func NewMicrosoftDeviceFlow ¶
func NewMicrosoftDeviceFlow(baseURL, tenant string) (*MicrosoftDeviceFlow, error)
NewMicrosoftDeviceFlow initiates a device code flow against the given base URL and tenant. For production use: baseURL="https://login.microsoftonline.com", tenant="consumers".
type Token ¶
type Token struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt time.Time `json:"expires_at"`
}
Token holds an OAuth access token and its metadata.
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
TokenStore encrypts and stores OAuth tokens in SQLite using AES-256-GCM.
func NewTokenStore ¶
func NewTokenStore(store *db.Store, key []byte) *TokenStore
NewTokenStore creates a TokenStore backed by store, encrypting with key. key must be exactly 32 bytes for AES-256.