pam-exec-oauth2

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 8 Imported by: 0

README

pam-exec-oauth2

Install

go get github.com/shimt/pam-exec-oauth2

PREFIX=/opt/pam-exec-oauth2

sudo mkdir $PREFIX
sudo cp go/bin/pam-exec-oauth2 $PREFIX/pam-exec-oauth2
sudo touch $PREFIX/pam-exec-oauth2.yaml
sudo chmod 755 $PREFIX/pam-exec-oauth2
sudo chmod 600 $PREFIX/pam-exec-oauth2.yaml

Configuration

PAM

add the following lines to /etc/pam.d/common-auth.

auth sufficient pam_exec.so expose_authtok /opt/pam-exec-oauth2/pam-exec-oauth2
pam-exec-oauth2.yaml

edit /opt/pam-exec-oauth2/pam-exec-oauth2.yaml

Azure AD
{
    client-id: "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    client-secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    redirect-url: "urn:ietf:wg:oauth:2.0:oob",
    scopes: ["email"],
    endpoint-auth-url: "https://login.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/authorize",
    endpoint-token-url: "https://login.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/token",
    extra-parameters: {
        resource: "https://graph.windows.net/"
    },
    username-format: "%s@example.org",
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
oauth2
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests, as specified in RFC 6749.
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests, as specified in RFC 6749.
oauth2/amazon
Package amazon provides constants for using OAuth2 to access Amazon.
Package amazon provides constants for using OAuth2 to access Amazon.
oauth2/authhandler
Package authhandler implements a TokenSource to support "three-legged OAuth 2.0" via a custom AuthorizationHandler.
Package authhandler implements a TokenSource to support "three-legged OAuth 2.0" via a custom AuthorizationHandler.
oauth2/bitbucket
Package bitbucket provides constants for using OAuth2 to access Bitbucket.
Package bitbucket provides constants for using OAuth2 to access Bitbucket.
oauth2/cern
Package cern provides constants for using OAuth2 to access CERN services.
Package cern provides constants for using OAuth2 to access CERN services.
oauth2/clientcredentials
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
oauth2/endpoints
Package endpoints provides constants for using OAuth2 to access various services.
Package endpoints provides constants for using OAuth2 to access various services.
oauth2/facebook
Package facebook provides constants for using OAuth2 to access Facebook.
Package facebook provides constants for using OAuth2 to access Facebook.
oauth2/fitbit
Package fitbit provides constants for using OAuth2 to access the Fitbit API.
Package fitbit provides constants for using OAuth2 to access the Fitbit API.
oauth2/foursquare
Package foursquare provides constants for using OAuth2 to access Foursquare.
Package foursquare provides constants for using OAuth2 to access Foursquare.
oauth2/github
Package github provides constants for using OAuth2 to access Github.
Package github provides constants for using OAuth2 to access Github.
oauth2/gitlab
Package gitlab provides constants for using OAuth2 to access GitLab.
Package gitlab provides constants for using OAuth2 to access GitLab.
oauth2/google
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
oauth2/heroku
Package heroku provides constants for using OAuth2 to access Heroku.
Package heroku provides constants for using OAuth2 to access Heroku.
oauth2/hipchat
Package hipchat provides constants for using OAuth2 to access HipChat.
Package hipchat provides constants for using OAuth2 to access HipChat.
oauth2/instagram
Package instagram provides constants for using OAuth2 to access Instagram.
Package instagram provides constants for using OAuth2 to access Instagram.
oauth2/internal
Package internal contains support packages for oauth2 package.
Package internal contains support packages for oauth2 package.
oauth2/jira
Package jira provides claims and JWT signing for OAuth2 to access JIRA/Confluence.
Package jira provides claims and JWT signing for OAuth2 to access JIRA/Confluence.
oauth2/jws
Package jws provides a partial implementation of JSON Web Signature encoding and decoding.
Package jws provides a partial implementation of JSON Web Signature encoding and decoding.
oauth2/jwt
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
oauth2/kakao
Package kakao provides constants for using OAuth2 to access Kakao.
Package kakao provides constants for using OAuth2 to access Kakao.
oauth2/linkedin
Package linkedin provides constants for using OAuth2 to access LinkedIn.
Package linkedin provides constants for using OAuth2 to access LinkedIn.
oauth2/mailchimp
Package mailchimp provides constants for using OAuth2 to access MailChimp.
Package mailchimp provides constants for using OAuth2 to access MailChimp.
oauth2/mailru
Package mailru provides constants for using OAuth2 to access Mail.Ru.
Package mailru provides constants for using OAuth2 to access Mail.Ru.
oauth2/mediamath
Package mediamath provides constants for using OAuth2 to access MediaMath.
Package mediamath provides constants for using OAuth2 to access MediaMath.
oauth2/microsoft
Package microsoft provides constants for using OAuth2 to access Windows Live ID.
Package microsoft provides constants for using OAuth2 to access Windows Live ID.
oauth2/nokiahealth
Package nokiahealth provides constants for using OAuth2 to access the Nokia Health Mate API.
Package nokiahealth provides constants for using OAuth2 to access the Nokia Health Mate API.
oauth2/odnoklassniki
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
oauth2/paypal
Package paypal provides constants for using OAuth2 to access PayPal.
Package paypal provides constants for using OAuth2 to access PayPal.
oauth2/slack
Package slack provides constants for using OAuth2 to access Slack.
Package slack provides constants for using OAuth2 to access Slack.
oauth2/spotify
Package spotify provides constants for using OAuth2 to access Spotify.
Package spotify provides constants for using OAuth2 to access Spotify.
oauth2/stackoverflow
Package stackoverflow provides constants for using OAuth2 to access Stack Overflow.
Package stackoverflow provides constants for using OAuth2 to access Stack Overflow.
oauth2/twitch
Package twitch provides constants for using OAuth2 to access Twitch.
Package twitch provides constants for using OAuth2 to access Twitch.
oauth2/uber
Package uber provides constants for using OAuth2 to access Uber.
Package uber provides constants for using OAuth2 to access Uber.
oauth2/vk
Package vk provides constants for using OAuth2 to access VK.com.
Package vk provides constants for using OAuth2 to access VK.com.
oauth2/yahoo
Package yahoo provides constants for using OAuth2 to access Yahoo.
Package yahoo provides constants for using OAuth2 to access Yahoo.
oauth2/yandex
Package yandex provides constants for using OAuth2 to access Yandex APIs.
Package yandex provides constants for using OAuth2 to access Yandex APIs.

Jump to

Keyboard shortcuts

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