Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unauthorized during app cration #25

Open
EduartHajko opened this issue Jul 30, 2023 · 1 comment
Open

unauthorized during app cration #25

EduartHajko opened this issue Jul 30, 2023 · 1 comment

Comments

@EduartHajko
Copy link

hello i have created an account in info bip and enabled the 2fa for my user and i constantly get unauthorized i have tried and with postman i get unatharized during the app creation
thanks in advance

private static readonly string BASE_URL = "https://lz5kpj.api.infobip.com";
private static readonly string API_KEY = "924cf6c39fceeba5184822f7f3be3fa9-27a5aa73-1f35-462c-a541-92070c8c66da";

    var configuration = new Infobip.Api.Client.Configuration()
            {
                BasePath = BASE_URL,
                ApiKeyPrefix = "APP",
                ApiKey = API_KEY
    };


   


    var tfaApi = new TfaApi(configuration);
    TfaApplicationConfiguration configuration2 = new TfaApplicationConfiguration()
    {
     AllowMultiplePinVerifications = true,
    PinAttempts = 5,
    PinTimeToLive =  "15m",
    SendPinPerApplicationLimit =  "10000/1d",
    SendPinPerPhoneNumberLimit = "3/1d",
    VerifyPinLimit = "1/3s",
    
    };
   // Step 1: Create a 2FA application
    var tfaApplicationRequest = new TfaApplicationRequest(configuration: configuration2, name: "2FA Application edi", enabled: true);
    var tfaApplication = tfaApi.CreateTfaApplication(tfaApplicationRequest);
@lvukadinovic-ib
Copy link
Contributor

Hi @EduartHajko,
if you're getting UNAUTHORIZED also via postman then it's probably not related to the SDK. Could you please try again with the new API key and paste the error message if it appears again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants