auth

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const OAuthCallbackPort = 8817

OAuthCallbackPort is the fixed port used for the OAuth callback server. The Bitbucket OAuth consumer must be configured with the callback URL:

http://localhost:8817/callback

Variables

This section is empty.

Functions

func Login

func Login(clientID, clientSecret string) (*config.TokenData, error)

Login performs the OAuth 2.0 Authorization Code flow. It starts a local HTTP server to receive the callback, opens the browser for user authorization, and exchanges the code for tokens.

func RefreshAccessToken

func RefreshAccessToken(clientID, clientSecret, refreshToken string) (*config.TokenData, error)

RefreshAccessToken uses the refresh token to obtain a new access token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL