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

Implements the Google Workspace ZTA #2809

Closed
wants to merge 6 commits into from
Closed

Conversation

aleDsz
Copy link
Member

@aleDsz aleDsz commented Oct 1, 2024

No description provided.

@aleDsz aleDsz self-assigned this Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

Uffizzi Preview deployment-56804 was deleted.

Comment on lines +26 to +30
<img
:if={@user.email}
src={"https://gravatar.com/avatar/#{hash_email(@user.email)}"}
class="rounded-full"
/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid Gravatar (especially without user's consent) see https://meta.stackexchange.com/q/44717 :)

defp validate_access_token(req, token) do
Logger.debug("[#{inspect(__MODULE__)}] requesting google api")

case Req.get(req, url: @userinfo_path, params: %{access_token: token}) do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we validate if the user belongs to a certain workspace? Otherwise I can get a token for my own workspace and use it to pass the validation?

@aleDsz aleDsz closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants