Got it. 

 

I don’t know which version of swagger-ui you use, but if it’s the latest, you 
can set up the redirect url.

Check out the parameters you can use - 
https://github.com/swagger-api/swagger-ui#parameters

 

 

 

From: <[email protected]> on behalf of sushant jha 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Monday, 5 June 2017 at 21:30
To: Swagger <[email protected]>
Subject: Re: Oauth 2.0 enable in swagger with .net core web api

 

Hi Ron, 

Thanks for reply. I have tried this. With the help of this,after exposing APIs 
on swagger UI ,Authorize button come up.Then Oauth get enabled. But i need to 
redirect my API Url i.e. localhost:8080/swagger to login 
screen((login.microsoft.com)  (not custom login page ) ,where it will check for 
authentication . Without using swagger, my web API URL use to redirect and 
check, but In case of swagger ,its not.

 I have gone through tutorial ,but i haven't got any relevant solution . Kindly 
help.

On Tuesday, 6 June 2017 03:27:53 UTC+5:30, Ron wrote: 

For language specific implementations, you’d need to ask the relevant project. 
In your case, I’m guessing it would be Swashbuckle. 

 

 

 

From: <[email protected]> on behalf of sushant jha 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Monday, 5 June 2017 at 10:37
To: Swagger <[email protected]>
Subject: Oauth 2.0 enable in swagger with .net core web api

 

Hi All, 

Can anyone suggest me? How Oauth 2.0 enable in swagger with .net core web api 
.Actually before all apis expose i need to redirect swagger url to login 
screen. Its really urgent.

 

Regards

Sushant

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to