Skip to content
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

Is there any way to get actual git username in server side hook and client side hook? #494

Closed
sgosulazc opened this issue Mar 3, 2016 · 5 comments

Comments

@sgosulazc
Copy link

We have $(git var GIT_AUTHOR_IDENT) adn $(git var GIT_COMMITTER_IDENT) commands but by updating the repository settings users can give fake these values.

Do we have any option to get actual authenticated username?

@RedX2501
Copy link
Collaborator

RedX2501 commented Mar 3, 2016

We provide the variables AUTH_USER and REMOTE_USER as environment variables on the server side.

Are they enough for you?

@sgosulazc
Copy link
Author

That's great! Thank you.

@ghost
Copy link

ghost commented Aug 4, 2016

the variables AUTH_USER and REMOTE_USER are not available on server side!!

@RedX2501
Copy link
Collaborator

RedX2501 commented Aug 4, 2016

@Manoj0007 Can you be a little bit more explicit? what do you mean? How did you try it out? What Bonobo version are you using?

@sgosulazc
Copy link
Author

@Manoj0007: If you want to get user information inside the web application then you can get it from HttpContext.Current.User. You will get details like Id, Name and Roles etc and It internally uses claims get fetch values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants