Categorygithub.com/Megaputer/go_oauth_phabricator/v2
modulepackage
2.0.2
Repository: https://github.com/megaputer/go_oauth_phabricator.git
Documentation: pkg.go.dev

# README

go_oauth_phabricator

Client for OAuth2 Phabricator in Golang

Go Reference

Installation and Usage

Install

go get -v github.com/Megaputer/go_oauth_phabricator

Usage

go run cmd/example/main.go 'code_value'

Example

Example

# Packages

No description provided by the author

# Functions

New сreates a pointer to the structure Config that is required to work with OAuth 'phid' is the client is PHID https://phabricator.example.net/oauthserver/query/all/ 'secret' is the application is secret available at the push of a button 'Show Application Secret' 'redirectURL' is the URL to redirect users going through the OAuth flow, after the resource owner's URLs.

# Structs

Config for OAuth.
User is the result of the function JSON looks like: { "phid": "PHID-USER-...", "userName": "...", "realName": "...", "image": phabricator_user_picture, "uri": phabricator_user_url, "roles": ["admin", "verified", "approved", "activated"], "primaryEmail": email }.