NekoCAS

package module
v0.0.0-...-7c99fdf Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

NekoCAS_Go_SDK

NekoCAS SDK for Go

Installation

go get -u github.com/NekoWheel/NekoCAS_Go_SDK

Begin to use

// Input the NekoCAS URL and the service secret.
cas := NekoCAS.New("https://cas.n3ko.co", "vNOZpKdqnUYcztBjUhvvPLpeYCIIBVev")

// Validate the ticket.
user, err := cas.Validate("ST-oadwZVbq5lUy151InUCC6UHDLI2l586k")
if err != nil {
    log.Println(err)
    return
} else {
    log.Println(user.Token)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(domain string, secret string) *cas

New: returns a cas struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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