#Suzz
1 messages · Page 1 of 1 (latest)
Hi there, do you mean you want to add Stripe's domains to your app's allowlist? https://stripe.com/docs/ips
i want to convert the stripe endpoints like checkout-session etc could access only by authenticated user
[Authorized]
like this
right now this is not working, while i call the checkout from my client app. i'm getting a blank page and the control not redirect to the api method inside the controller
without authorisation it is possible to go to the checkout page built by stripe. with authorisation not possible
no @zenith harbor this is not my case
can you please help me to resolve this?
I'm still trying to understand your problem
Are you saying that the checkout page is blank when your customer opens it?
in C# we can create anonymous and authorized apis right?
the checkout api is working as anonymous api, if i give the authorize attribute. the api is not calling. and showing a blank page in the client app
I'm not familiar with C# and I can only help with questions specific to Stripe APIs and products.
the api is working with anonymous api, but if we try to authorize it the api is not calling
any c# dev can help me
could you please connect to any c# dev ?
I still don't understand how to relate [Authorize] attribute (https://learn.microsoft.com/en-us/aspnet/core/security/authorization/simple?view=aspnetcore-7.0) to Stripe APIs. As far as I know you should use [Authorize] attribute on the API endpoint that you are building, not on Stripe APIs.
Learn how to use the Authorize attribute to restrict access to ASP.NET Core controllers and actions.
yes i already used this
and i all other apis are working under [authorize] attribute. but not the stripe apis
Are you trying to set [authorize] attribute directly on Stripe APIs?
I don't think you can do that I'm afraid. You can only set [authorize] attribute on the API endpoints that you own.
why any specific reason? could you please explain a bit about it?
I don't think you can set an attribute to any 3rd-party API endpoints, not just Stripe APIs.