Hello @ ismcagdas. Unfortunately not yet :-(
My goal is to make Frontend development independent of backend development.
The Frontend developer must be able to test the methods exposed to Swagger's UI
But I still have the same Error message: "Current user did not login to the application!" "To access some methods I need to authenticate"
What I have done: 1 - Add the Authenticate button to SwaggerUI [http://prntscr.com/iepkku]) 2 - I get the Api_key from: Project: .Web.Host> appsettings.json <span style="color:#FF0040"> [I do not know if it's here that you have to look for it or not]</span>
CODE:
"JwtBearer": {
"IsEnabled": "true",
"SecurityKey": "Digiapps_8CFB2EC534E14D56",
"Issuer": "Digiapps",
"Audience": "Digiapps"
}
3 - I put the following code: Digiapps_8CFB2EC534E14D56 in the field: Api_key
And it does not work, the result is the same, I always have the erratic message: "Current user did not login to the application!" In local and remote Server
it's been 3 days that I seek the solution. How can I authenticate to test all methods.!!!
If someone need this:
<a class="postlink" href="http://prntscr.com/iecp3z">http://prntscr.com/iecp3z</a>
Hello, Thank you for sharing your solution.
In fact I tried your code, and I have an error. He tells me that:
An error occurred while starting the application.
FileNotFoundException: Le fichier 'D:\devnet\tryout\Digiapps\aspnet-core\src\Digitar.Digiapps.Web.Host\bin\Debug\net461\Digitar.Digiapps.Web.Host.xml' est introuvable.
System.IO.__Error.WinIOError(int errorCode, string maybeFullPath)
FileNotFoundException: Le fichier 'D:\devnet\tryout\Digiapps\aspnet-core\src\Digitar.Digiapps.Web.Host\bin\Debug\net461\Digitar.Digiapps.Web.Host.xml' est introuvable.
If I understand correctly I have to create an XML file (Digitar.Digiapps.Web.Host.xml): 1- what it must contain this file 2 - it must be deployabale I think. 3 - It must be put where.
???
Thank you
thanks very much