Commit b7e7dc11 authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

Added /loginSupported API

parent 97f980a5
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -162,6 +162,23 @@ paths:
          description: "OK"
        401:
          description: "Unauthorized"
  /loginSupported:
    get:
      tags:
      - "auth"
      summary: "Check if login is supported"
      description: "Check if login is supported and whether session exists"
      operationId: "loginSupported"
      produces:
      - "application/json"
      parameters: []
      responses:
        200:
          description: "OK"
        401:
          description: "Unauthorized"
        404:
          description: "Not Found"
definitions:
  Sandbox:
    type: "object"
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 1.0.0
- Build date: 2021-02-18T14:17:19.294-05:00
- Build date: 2021-03-08T21:48:11.560-05:00


### Running the server
+4 −0
Original line number Diff line number Diff line
@@ -51,3 +51,7 @@ func Logout(w http.ResponseWriter, r *http.Request) {
func TriggerWatchdog(w http.ResponseWriter, r *http.Request) {
	asTriggerWatchdog(w, r)
}

func LoginSupported(w http.ResponseWriter, r *http.Request) {
	asLoginSupported(w, r)
}
+7 −0
Original line number Diff line number Diff line
@@ -112,4 +112,11 @@ var routes = Routes{
		"/auth/v1/watchdog",
		TriggerWatchdog,
	},

	Route{
		"LoginSupported",
		strings.ToUpper("Get"),
		"/auth/v1/loginSupported",
		LoginSupported,
	},
}
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ Class | Method | HTTP request | Description
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**authenticate**](docs/AuthApi.md#authenticate) | **GET** /authenticate | Authenticate service request
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**authorize**](docs/AuthApi.md#authorize) | **GET** /authorize | OAuth authorization response endpoint
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**login**](docs/AuthApi.md#login) | **GET** /login | Initiate OAuth login procedure
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**loginSupported**](docs/AuthApi.md#loginSupported) | **GET** /loginSupported | Check if login is supported
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**loginUser**](docs/AuthApi.md#loginUser) | **POST** /login | Start a session
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**logout**](docs/AuthApi.md#logout) | **GET** /logout | Terminate a session
*AdvantEdgeAuthServiceRestApi.AuthApi* | [**triggerWatchdog**](docs/AuthApi.md#triggerWatchdog) | **POST** /watchdog | Send heartbeat to watchdog
Loading