README ¶ Yandex OAuth 2.0 example OAuth application registration Go to Yandex OAuth Click Register new client Make sure to choose "Web services" as a target Platform and specify proper callback URI Make sure to grant "Yandex.Disk REST API" permissions (or choose whatever you need) Click "Create app" Use "ID" and "Password" as Client ID and Client Secret for OAuth client Usage Build & run example application Open localhost:8000/auth/yandex/login (or use whatever listen address you specified) Building go build -o ./bin/yandex-oauth ./examples/00_oauth/main.go Running ./bin/yandex-oauth \ -listen=locahost:8000 \ -client-id=YOUR-APPLICATION-CLIENT-ID \ -client-secret=YOUR-APPLICATION-CLIENT-SECRET \ -callback-url="http://localhost:8000/auth/yandex/callback" Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.