profile
viewpoint
Hans Hanspagh @Maersk-Global Copenhagen, Denmark Programming and stuff

BuddyGG/buddy_matching 62

Somewhat generic player matching service built with Elixir and Phoenix

cphex/cphex 43

A repo for discussing and organising meetings and events

BuddyGG/buddy_frontend 3

A League of Legends match making system.

Hanspagh/CSharp-Chess-Game 2

Let's learn some C# by building a chess game

ecly/terran_easy_bot 1

Very basic SC2-AI bot playing Terran and using Q-learning

ecly/is_it_freeze 0

Small service for checking whether a date is valid for deployment

Hanspagh/Advent 0

Solutions to Advent of Code

startedggandor/lightspeed.nvim

started time in 7 days

issue commentueberauth/guardian

:crypto.hmac/3 undefined due to being deprecated --> Need to bump Jose to 1.11

Feel free to open a PR. This is only a problem for OTP-24

fantypants

comment created time in a month

issue commentueberauth/ueberauth_google

How to pass custom state after the CSRF refactoring?

Sounds like we might need to reopen this again

fedme

comment created time in a month

push eventHanspagh/ci

Hans Pagh

commit sha 77a96dd9f5b8338253fbdef2cc8a29ceaf2d2e95

clean up debugging and function response

view details

push time in 2 months

PR closed ueberauth/ueberauth_twitter

Forward query parameters to OAuth endpoint

Twitter's OAuth authenticate endpoint supports query parameters force_login or screen_name to modify the user flow when authenticating with Twitter.

This change allows to make use of these parameters by forwarding all query parameters to the initial request to the OAuth endpoint.

For example, to always ask for a user name and password (even if logged in to Twitter), initiate the request through:

/auth/twitter?force_login=true
+10 -2

1 comment

3 changed files

arnodirlam

pr closed time in 3 months

pull request commentueberauth/ueberauth_twitter

Forward query parameters to OAuth endpoint

Closing due to inactivity, feel free to reopen

arnodirlam

comment created time in 3 months

PR closed ueberauth/ueberauth_github

Add unit test support

Enable callback with code=test_code for unit test support only.

Authorization can be mock in unit test. Example:

describe "new github authentication" do
  test "create new user", %{conn: conn} do
    assert Accounts.find_authentication(@github_params.uid) == nil

    conn =
      conn
      |> assign(:ueberauth_auth, @github_params)
      |> get(auth_path(conn, :callback, :github), %{"code" => "test_code"})

    assert html_response(conn, 302)
    assert Accounts.find_authentication(@github_params.uid) != nil
  end
end
+31 -0

3 comments

1 changed file

edwardzhou

pr closed time in 3 months

pull request commentueberauth/ueberauth_github

Add unit test support

Closing due to inactivity, feel free to reopen

edwardzhou

comment created time in 3 months

more