authentication

ASP.NET WindowsAuthentication custom 401 Unauthorized error page

一笑奈何 提交于 2020-08-02 06:18:26
问题 I have an ASP.NET web-site with authentication using ActiveDirectory. Now , when an authenticated user opens a page - he is automatically authenticated. I have faced a problem - when a non-authenticated user ( for example, a Mozilla Firefox user with not defined network.automatic-ntlm-auth.trusted-uris property ) opens a page, IIS sends 401 response and prompts for a login \ password. What I want is not to prompt him for a login \ password - just show a custom error page. It sounds pretty

How to authorize django-rest-knox login path without 401 error?

南楼画角 提交于 2020-07-30 08:04:42
问题 I'm trying to put an authentication api on my django app so I can start using a Vue+Node frontend. I've read over the knox documentation, but I don't seem to see anything suggesting what the issue is. Any insight would be greatly appreciated. My suspicious are below. What I'm doing: I was following this tutorial which suggest using knox, which seems to have nice features. When I try to curl to create a user, everything works as expected, but when I try to login (via curl), I get the following

How to authorize django-rest-knox login path without 401 error?

▼魔方 西西 提交于 2020-07-30 08:02:52
问题 I'm trying to put an authentication api on my django app so I can start using a Vue+Node frontend. I've read over the knox documentation, but I don't seem to see anything suggesting what the issue is. Any insight would be greatly appreciated. My suspicious are below. What I'm doing: I was following this tutorial which suggest using knox, which seems to have nice features. When I try to curl to create a user, everything works as expected, but when I try to login (via curl), I get the following

Cakedc.users => always redirect to homepage

混江龙づ霸主 提交于 2020-07-30 07:43:11
问题 I'm using the plugins "CakeDC/Users" on a brain new Cakephp installation. I've got two controllers : PagesController.php, CardsController.php. Pages has 1 action (Beta, it's the homepage), and Cards two actions (index, and single). Here is the setup in the bootstrap : Configure::write('Users.config', ['users']); Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]); And the configuration of the plugin in config/users.php : return [ 'Users' => [ 'Email' => [ 'validate' => false

Django: redirect to view with parameters

杀马特。学长 韩版系。学妹 提交于 2020-07-30 03:51:45
问题 I am using Django authentication. Whenever a user logs in, I want to redirect him to /profile/user_id, being user_id a number. I can get the value of user_id by request.user.profile.id . In settings.py I have LOGIN_REDIRECT_URL = 'app_1:index' app_1/urls.py: url(r'^profile/$', views.index, name='index'), # ex: /profile/5/ url(r'^profile/(?P<user_id>[0-9]+)/$', views.profile, name='profile'), app_1/views.py (things I've also tried are commented): def index(request): userid = request.user

Istio RequestAuthentication from Origin Only and Excluding Internals Services in the mesh

好久不见. 提交于 2020-07-23 06:04:49
问题 My use case is that i would deploy Elasticseach + Kibana into the mesh and configure End-User outside of Kubernetes to access Elasticsearch API with JWT Authentication. While i was successful in configuring and applying that I found that my Kibana deployment to be failing. I know it has something to do with the RequestAuthentication + AuthorizationPolicy defined I get a RBAC: access denied error when I tried CURLing elasticsearch from my kibana’s istio-proxy sidecar. Have I misconfigured

Istio RequestAuthentication from Origin Only and Excluding Internals Services in the mesh

只谈情不闲聊 提交于 2020-07-23 06:03:07
问题 My use case is that i would deploy Elasticseach + Kibana into the mesh and configure End-User outside of Kubernetes to access Elasticsearch API with JWT Authentication. While i was successful in configuring and applying that I found that my Kibana deployment to be failing. I know it has something to do with the RequestAuthentication + AuthorizationPolicy defined I get a RBAC: access denied error when I tried CURLing elasticsearch from my kibana’s istio-proxy sidecar. Have I misconfigured

Istio RequestAuthentication from Origin Only and Excluding Internals Services in the mesh

醉酒当歌 提交于 2020-07-23 06:02:31
问题 My use case is that i would deploy Elasticseach + Kibana into the mesh and configure End-User outside of Kubernetes to access Elasticsearch API with JWT Authentication. While i was successful in configuring and applying that I found that my Kibana deployment to be failing. I know it has something to do with the RequestAuthentication + AuthorizationPolicy defined I get a RBAC: access denied error when I tried CURLing elasticsearch from my kibana’s istio-proxy sidecar. Have I misconfigured

Is Sign in with Apple (SIWA) supported in the tvOS simulator?

喜夏-厌秋 提交于 2020-07-23 04:58:08
问题 I have enabled the entitlements for SIWA in the project target. And the same steps are working fine in the iOS simulator. I am facing the following issue while trying to Sign in with Apple (SIWA) on the tvOS simulator. Steps to reproduce the issue: Upon requesting for SIWA on custom button tap, a full-screen layover displayed for the password of apple id (No option for choosing email relay was given) (screenshot attached in the last for reference) Upon entering the correct password I get the

Is Sign in with Apple (SIWA) supported in the tvOS simulator?

青春壹個敷衍的年華 提交于 2020-07-23 04:57:05
问题 I have enabled the entitlements for SIWA in the project target. And the same steps are working fine in the iOS simulator. I am facing the following issue while trying to Sign in with Apple (SIWA) on the tvOS simulator. Steps to reproduce the issue: Upon requesting for SIWA on custom button tap, a full-screen layover displayed for the password of apple id (No option for choosing email relay was given) (screenshot attached in the last for reference) Upon entering the correct password I get the