auth for github in vault hashicorp

C++
#Enbale the github authentication method

vault auth enable github

#Write the config
vault write auth/github/config organization=hashicorp

#Read the config
vault read auth/github/config

#Provide specific team access int he github
#Configure the GitHub engineering team authentication to be granted the default and applications policies
vault write auth/github/map/teams/engineering value=default,applications

#login using the github method
vault login -method=github

#Revoke all tokens generated the github auth method.
vault token revoke -mode path auth/github
Source

Also in C++: