-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using customized OAuth provider (within non-Docker environment) #1
Comments
I too have the same question as @kumasa05 . I mean we have a different service running for authentication and I can get the web service details for request and upon validation it will return a valid token with user info. Need help on the integration mostly. Please let me know ur thoughts. |
HI, I'd like to explain how this plugin works and you can check if it meats your usage or have a further discussion.
|
@LouisSung I mean to say standalone as non docker instance(Installed in EC2 Linux). Also in your instruction, I am not clear with where you want to place the https://github.com/thephpleague/oauth2-client module? Can you provide exact path? Also as per your flow, instead of GitHub we have internal authentication system which supports OAuth authentication. So as you said, simply providing our internal server details to the config will connect to that server, Once the authentication was successful they will redirect to https://short.me/admin#?token="Random alpha numeric string" Is the return string format is enough to set the login successful by using your plugin? (Sorry if the question looks silly.. As I said I am not really proficient :) |
Hi, it was my first time using PHP when writing this plugin, so I'm not familiar with it either LOL
|
Are you using GitHub as the OAuth provider? |
Seriously your comments looks motivating :) Long live Bro 👍 My Requirement:
This is my current need. So to implement this I am looking for your plugin. |
Hi, I've pushed a new version for GitHub OAuth. And it still works for Although you're not using GitHub as OAuth provider, it still helps on knowing how to change my code to use different providers.
FYI |
Hope this helps |
Ohh... |
Its just our normal Yourls Admin interface.
This step is hard for me, because we are authenticating against enterprise AD directory. We cannot store any password in the configs. This is a big challenge to me and blocker :( |
Wow So how do you handle log in process as of now? But you said the AuthMrgPlus is used.. doesn’t it require editing in config file? I'm using the built-in auth process and for security and maintainability awareness. To introduce a new mechanism for auth is not recommended. What my plugin do is simply get Username and ID using OAuth and generate garbled password for user. Does your policy not allow storing any password in the config file (even the auto-generated one not the real user password)? |
Also we are going to this OAuth authentication to address several security issues identified in the default authentication. These are the security issues identified by me YOURLS/YOURLS#2634 But in this scenario, I have 2 risk
To overcome this, either we can set the incoming token as Cookie key to set a md5 hash string. This way, each time when the user try to login, a random token will be created and we can have unique cookie values for same user. This is just a thought.. not sure on implementation :) |
Yes we didn't gone live yet. We got blocked in security testing as I mentioned in the other link. To overcome that, I choose this Oauth way to connect enterprise AD for more security.
Yes it is, but it just require the username not the password.
|
Did you get a new #token or #code when you authenticated through Githup? If you can do the above, there is no need to store any password in config. Because authentication works based on the cookie value. |
:o I haven't traced the code for how YOURLS handle user validation, sessions, and cookies. Hmm, that's might not be this plugin designed for since I'm not familiar with these security issues and just use the traditional Sorry for not being able to help _(;3 |
Yup as Ozh said, i need to have some development knowledge to accomplish that. But I am new to PHP and I am not really a developer kind. :) |
You're welcome~ I learn PHP for writing this plugin. Actually, YOURLS provides lots of events hooks for plugin to handle their requirements. The reason why I didn't touch the db part is not only I'm not familiar with those security issues, but also because during the YOULRS' evolution, some plugins get errors without keep maintaining (especially those touch the db...). However, in my point of view (as I mentioned before), by using the
|
@LouisSung
Can we use this plugin for standalone instance?
And we have our own Oauth server for validation, Are we able to modify the config as per our need?
In our case the authentication will be taken part on 3rd party and once we got successful authentication we will receive access token, user ID, token expiration etc..
The text was updated successfully, but these errors were encountered: