-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1120) * capcha validation * organized imports * reverted maven mirror changes * already changed earlier * added property tag for oidc * Removed API rate limit changes * fixed test case issues * changed binding otp to v2 flow * addressed review comments * removed unwanted variable * review comments fixed * review comments fixed * review fixes * correct the test case * review comments fixed --------- Signed-off-by: Md-Humair-KK <[email protected]>
- Loading branch information
1 parent
27983d9
commit 4d9d8ac
Showing
13 changed files
with
366 additions
and
41 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4428,6 +4428,112 @@ paths: | |
- url: 'https://esignet.collab.mosip.net/v1/esignet' | ||
x-stoplight: | ||
id: t315hcecaulyy | ||
/binding/v2/binding-otp: | ||
post: | ||
tags: | ||
- WALLET BACKEND | ||
summary: Send Binding OTP Endpoint | ||
description: Send wallet binding OTP endpoint is invoked by Mimoto server. | ||
operationId: post-binding-otp | ||
parameters: | ||
- name: partner-api-key | ||
in: header | ||
description: 'API key of the binding partner, this will be passed to binder implementation to interact with authentication system.' | ||
schema: | ||
type: string | ||
- name: partner-id | ||
in: header | ||
description: 'Binding partner Identifier, this will be passed to binder implementation to interact with authentication system.' | ||
schema: | ||
type: string | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
requestTime: | ||
type: string | ||
request: | ||
type: object | ||
properties: | ||
individualId: | ||
type: string | ||
description: User Id (UIN/VID) | ||
otpChannels: | ||
type: array | ||
description: Channels to which OTP should be delivered. | ||
items: | ||
type: string | ||
captchaToken: | ||
type: string | ||
description: 'Captcha token, if enabled.' | ||
required: | ||
- individualId | ||
- otpChannels | ||
required: | ||
- requestTime | ||
- request | ||
examples: | ||
Example 1: | ||
value: | ||
requestTime: '2023-09-22T08:01:13.000Z' | ||
request: | ||
individualId: '24554655645' | ||
otpChannels: | ||
- sms | ||
captchaToken: ALSKDJFURIEOQPZMKFURHFVBH | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
responseTIme: | ||
type: string | ||
response: | ||
type: object | ||
properties: | ||
maskedEmail: | ||
type: string | ||
description: Masked email id of the individualId user. | ||
maskedMobile: | ||
type: string | ||
description: Masked mobile number of the individualId user. | ||
errors: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
errorCode: | ||
type: string | ||
enum: | ||
- invalid_otp_channel | ||
- unknown_error | ||
- invalid_individual_id | ||
- send_otp_failed | ||
- invalid_captcha | ||
errorMessage: | ||
type: string | ||
required: | ||
- responseTIme | ||
examples: | ||
Example 1: | ||
value: | ||
responseTIme: '2023-09-22T08:01:16.000Z' | ||
response: | ||
maskedEmail: [email protected] | ||
maskedMobile: XXXXXXX357934 | ||
errors: [ ] | ||
security: | ||
- Authorization-send_binding_otp: [ ] | ||
servers: | ||
- url: 'https://esignet.collab.mosip.net/v1/esignet' | ||
x-stoplight: | ||
id: xnl3gyq4v4bh4 | ||
/binding/wallet-binding: | ||
post: | ||
tags: | ||
|
@@ -5290,8 +5396,6 @@ components: | |
|
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
15 changes: 15 additions & 0 deletions
15
esignet-core/src/main/java/io/mosip/esignet/core/dto/BindingOtpRequestV2.java
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,15 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
package io.mosip.esignet.core.dto; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class BindingOtpRequestV2 extends BindingOtpRequest{ | ||
private String captchaToken; | ||
} |
Oops, something went wrong.