func init() { agoltools.HandleFunc("/auth/signin", signIn) agoltools.HandleFunc("/auth/callback", callback) agoltools.HandleFunc("/auth/signout", signOut) authParams := url.Values{ "client_id": {config.Config.AppId}, "redirect_uri": {config.Config.AppBaseUrl + "/auth/callback"}, "expiration": {strconv.Itoa(60 * 24 * 14)}, // 2 weeks in minutes "response_type": {"token"}, } portalAuthorizeUrl = fmt.Sprintf("%s/oauth2/authorize?%s", config.Config.PortalAPIBaseUrl, authParams.Encode()) portalOrgAuthorizeUrlTemplate = fmt.Sprintf("%s/oauth2/authorize?%s", config.Config.PortalOrgAPIBaseUrlTemplate, authParams.Encode()) }
func init() { agoltools.HandleFunc("/", root) }
func init() { agoltools.HandleFunc("/webmapurls", auth.Authenticated(getWebMapUrls)) }
func init() { agoltools.HandleFunc("/orgusers", auth.Authenticated(getOrgUsers)) }
func init() { agoltools.HandleFunc("/registeredapps", auth.Authenticated(getRegisteredApps)) }
func init() { agoltools.HandleFunc("/myagol", auth.Authenticated(getMyAGOL)) }
func init() { agoltools.HandleFunc("/addfolderservices", auth.Authenticated(addFolderServices)) }
func init() { agoltools.HandleFunc("/registeredappsloginstats", auth.Authenticated(getRegisteredAppsLoginStats)) }