Skip to content
Snippets Groups Projects
Verified Commit be2f1358 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

update example

parent 1ea3e286
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,6 @@ import ( ...@@ -6,8 +6,6 @@ import (
"net/http" "net/http"
) )
const authRedirect = "/login"
var auth = CreateClient( var auth = CreateClient(
"26736548200992581545", "26736548200992581545",
"HnweMcB0YNOadjcx9WvS0fsLPiX2pS6w6rRIKTHigV0A6bx4yjMxE60TdWKJoG7kxNs9g1gDMgDH92Bw", "HnweMcB0YNOadjcx9WvS0fsLPiX2pS6w6rRIKTHigV0A6bx4yjMxE60TdWKJoG7kxNs9g1gDMgDH92Bw",
...@@ -46,6 +44,8 @@ func init() { ...@@ -46,6 +44,8 @@ func init() {
mux.Handle("/login/", authHandler) mux.Handle("/login/", authHandler)
} }
// Ez a webszerver a /-ben átirányít AuthSCH-s bejelentkezésre, ahol minden támogatott scope-ot kér,
// majd a kapott parse-olt adatot JSON-ként visszaküldi a felhasználónak.
func ExampleAccDetails() { func ExampleAccDetails() {
log.Fatal(http.ListenAndServe(":8080", mux)) log.Fatal(http.ListenAndServe(":8080", mux))
// Output: // Output:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment