login

Custom authentication in a Symfony 3 using external REST API

蓝咒 提交于 2020-01-23 06:35:06
问题 I would like to write a basic login form, which authenticates users by sending a request to an external REST API. The external API receives the login/password and return 200 (ok) if the credentials are correct. However, I can't implement it via the UserProviderInterface, because the external REST API give me the password in the reply. (I can't fill the user password in the loadUserByUsername method). I found a valid solution here, but it uses classes that have been removed in Symfony 3 :

Keycloak automatic login after email confirmation with disabled user

余生颓废 提交于 2020-01-23 03:34:26
问题 We're using keycloak (KC) with custom providers for the registration flow. At the end of the registration flow, before the confirmation email is sent to the user (as a default KC functionality), we disable the user as it fits our use case. When user clicks on the email confirmation, mail is confirmed and user is automatically logged in, despite the fact he/she is disabled at that point. Logins after that work as expected (if user is disabled, login is forbidden, else it succeeds). Upon

You are not a sandbox user of this client. Error Codeigniter-Instagram api

早过忘川 提交于 2020-01-22 19:04:04
问题 In my codeigniter project I am trying to use Instagram API for log in. This is the library which I am using. But when going to the login page, it is showing error {"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"} The sample url is https://www.instagram.com/oauth/authorize/?client_id=[client ID]&redirect_uri=[your url]&response_type=code Why it is working like this? Any help could be appreciated 回答1: As per this error: {"code":

Android Login with Token Session: like user logins and stays in session until logout

随声附和 提交于 2020-01-22 10:04:47
问题 After login in android app, how do I create a token session in the php api? Like this: I would like to make sure that when user log in it will stay in session no matter what happens (crashed, shut down/power down/reboot, leaving the app) at same time the user info data will be sending with all the activities in the app to the webserver. Do I simply use: session_start(); $_SESSION['username'] = $user; $_SESSION['auth'] = "true"; If so how do I pass this session into the android application?

Validating Username and Password in ADF mobile application

蹲街弑〆低调 提交于 2020-01-21 14:35:08
问题 I am developing a simple login page in adf mobile application. following is the piece of code in login (amx) page right now. <amx:panelGroupLayout id="panelGroupLayout2"> <amx:inputText value="#{viewcontrollerBundle.USER_NAME}" label="#{viewcontrollerBundle.USER_NAME}" id="UserName" showRequired="true" required="true"/> <amx:inputText id="inputText2" required="true" showRequired="true" secret="true" label="#{viewcontrollerBundle.PASSWORD}"/> </amx:panelGroupLayout> Once the user enters the

How to make a secure login using UDID or device token?

删除回忆录丶 提交于 2020-01-21 09:34:24
问题 So I'm making an app where I want the users to be able add, edit and rate content, but I do not want to force them to register. Instead I was planning on just using their device id or device token to identify them. I'm planning on making both an iPhone and Android version, so I'm looking for a general solution, but the iPhone version has higher priority, so an iPhone specific solution would also be welcome. The problem is that I don't want just anyone to be able to use my web service by

How to make a secure login using UDID or device token?

眉间皱痕 提交于 2020-01-21 09:29:45
问题 So I'm making an app where I want the users to be able add, edit and rate content, but I do not want to force them to register. Instead I was planning on just using their device id or device token to identify them. I'm planning on making both an iPhone and Android version, so I'm looking for a general solution, but the iPhone version has higher priority, so an iPhone specific solution would also be welcome. The problem is that I don't want just anyone to be able to use my web service by

PHP & MySQL compare password

强颜欢笑 提交于 2020-01-20 02:26:05
问题 How does one check to see if a user has typed in the right password to log in? This is what (out of a bunch of combinations...) I am doing: <? $login = $_POST['login']; $password = $_POST['password']; mysql_connect('localhost', 'root', 'abc123'); mysql_select_db('aun_vox') or die(mysql_error()); $q = mysql_query("SELECT password FROM customer WHERE login='$login'"); $db_pass = mysql_result($q, 0); if(md5($password) == $db_pass) { echo "You did it."; } else echo "Wrong."; ?> As I can see from

Preventing Brute Force Logins on Websites

霸气de小男生 提交于 2020-01-18 05:46:33
问题 As a response to the recent Twitter hijackings and Jeff's post on Dictionary Attacks, what is the best way to secure your website against brute force login attacks? Jeff's post suggests putting in an increasing delay for each attempted login, and a suggestion in the comments is to add a captcha after the 2nd failed attempt. Both these seem like good ideas, but how do you know what "attempt number" it is? You can't rely on a session ID (because an attacker could change it each time) or an IP

Cross-site authentication options on separate domains

自闭症网瘾萝莉.ら 提交于 2020-01-17 13:43:29
问题 We're considering an authentication system for a very temporary website that needs to authenticate from another site. To sum it up here, we have two sites on completely different domains. foo.com is the main site that will always exist (and already does). This is the main place where users go and log into that site, and do things in their logged in state there. That site will get modified soon to have a link to bar.com. When a user that's logged in on foo.com clicks the link to bar.com they