authentication

Custom cookie authentication not working after migration from ASP.NET Core 1.1 MVC to 2.0

不羁岁月 提交于 2019-12-14 04:16:48
问题 I have migrated an ASP.NET Core 1.1 MVC project to ASP.NET Core 2.0 and now I note that requests to unauthorized sections of the application no longer result with a "401 Unauthorized" response but rather with a code exception leading to a response "500 internal server error". An example excerpt

Unable to authenticate when trying to add photos or albums through Google Picasa API

随声附和 提交于 2019-12-14 04:02:13
问题 I am trying to upload a photo to an album through Picasa's API, however I am getting an authentication error. My credentials are being successfully authenticated right when the program starts, just not when I am trying to upload a photo or add an album Here is the code I have: import gdata.photos

WCF ticket base authentication

半城伤御伤魂 提交于 2019-12-14 03:54:14
问题 I am writing WCF service that uses wsHttpBinding binding, which is not hosted in IIS but in Windows Service. I want to have a Login(user,pass) method in service, which will give a ticket to the client if the user is valid. Can anyone help me to understand how to implement ticket base

laravel redirect if logged in

岁酱吖の 提交于 2019-12-14 03:39:28
问题 i am using laravel 5.1.8. i am making a login/registration system. i made a controller named AdminController and protect it with middleware. but i am using laravel's default AuthController which methods and classes are located in different locations. where routes are: Route::Controllers([ 'auth'