-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add api for third party to authenticate (#58)
* Fix bugs in email sending and vm power managing. * Add api for third party to authenticate
- Loading branch information
Showing
7 changed files
with
168 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/controller/models/GetTokenInfoRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* cloudapi_v2 | ||
* buaa scs cloud api v2 | ||
* | ||
* The version of the OpenAPI document: 2.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package cn.edu.buaa.scs.controller.models | ||
|
||
|
||
/** | ||
* | ||
* @param token 用户的认证令牌 | ||
* @param service 请求的服务名称 | ||
*/ | ||
data class GetTokenInfoRequest( | ||
/* 用户的认证令牌 */ | ||
val token: kotlin.String, | ||
/* 请求的服务名称 */ | ||
val service: kotlin.String | ||
) | ||
|
27 changes: 27 additions & 0 deletions
27
cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/controller/models/TokenInfoResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* cloudapi_v2 | ||
* buaa scs cloud api v2 | ||
* | ||
* The version of the OpenAPI document: 2.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package cn.edu.buaa.scs.controller.models | ||
|
||
import cn.edu.buaa.scs.controller.models.TokenInfoResponseData | ||
|
||
/** | ||
* | ||
* @param code | ||
* @param msg | ||
* @param `data` | ||
*/ | ||
data class TokenInfoResponse( | ||
val code: kotlin.Int, | ||
val msg: kotlin.String, | ||
val `data`: TokenInfoResponseData? = null | ||
) | ||
|
29 changes: 29 additions & 0 deletions
29
cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/controller/models/TokenInfoResponseData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* cloudapi_v2 | ||
* buaa scs cloud api v2 | ||
* | ||
* The version of the OpenAPI document: 2.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package cn.edu.buaa.scs.controller.models | ||
|
||
|
||
/** | ||
* | ||
* @param id 用户的唯一标识 | ||
* @param role 用户角色 | ||
* @param service 第三方服务名称 | ||
*/ | ||
data class TokenInfoResponseData( | ||
/* 用户的唯一标识 */ | ||
val id: kotlin.String, | ||
/* 用户角色 */ | ||
val role: kotlin.String, | ||
/* 第三方服务名称 */ | ||
val service: kotlin.String | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters