Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
question
S
UX research
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/39_account_ressource"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
483e506361toe0f26c6164WIP: feature/39_account_ressourceto WIP: Account Ressource # SSO closes https://git.local-it.org/local-it/mitgliederverwaltung/issues/39, https://git.local-it.org/local-it/mitgliederverwaltung/issues/40 and https://git.local-it.org/local-it/mitgliederverwaltung/issues/41WIP: Account Ressource # SSO closes https://git.local-it.org/local-it/mitgliederverwaltung/issues/39, https://git.local-it.org/local-it/mitgliederverwaltung/issues/40 and https://git.local-it.org/local-it/mitgliederverwaltung/issues/41to WIP: Account Ressource # SSO closes #39, #40 and #41#39
#40
#31
admin@localhost
Password from docker compose file
name: mv
redirect uris: http://localhost:4000/auth/user/rauthy/callback
authorization_code, password, client_creentials (maybe also just fewer needed)
allowed origins: http://localhost:4000
access/id token algortihm: RS256 --> EDDSA did not work for me, found just few infos in the ashauthentication docs
WIP: Account Ressource # SSO closes #39, #40 and #41to Account Ressource # SSO closes #39, #40 and #41Seems like there's a migration missing here, when I try to sign up it throws an error:
After I've generated a migration, I get the following error:
I think this is due to the type
:ci_stringin the email attribute. According to the ash_postgres docs, this requires a postgres extension: https://hexdocs.pm/ash_postgres/AshPostgres.Repo.html#module-installed-extensions but I'm not sure what the best way to enable it is.Ufff, I don't know why the migrations got lost... I will check that
This looks great already!
I'd love to get EdDSA working as RSA is becoming quite outdated already. If the docs are too sparse here, we could ask a quick question in the Ash Discord to check if it might be possible?
@ -21,0 +33,4 @@rauthy:container_name: rauthy-testimage: ghcr.io/sebadob/rauthy:latestI think we could pin this to a specific version, and renovate will open a PR when a new version comes out so we can explicitly test if it still works :)
@ -0,0 +36,4 @@"""_ ->"Incorrect email or password"I think this case will match if there's any other error, e.g. when there's a problem with the database. To help with debugging, you could add a
Logger.errorcall before returning this message so we can see what went wrong in the terminal. If you do this, don't forget torequire Loggerat the top of the file :)For others testing this, I ran into this rauthy issue while setting up which I'm still not entirely sure how to fix properly. One option is to test with HTTPS, but it's annoying to make browsers accept a self-signed certificate. The other option is to test with HTTP, which requires these environment vars in docker-compose.yml:
@ -87,0 +93,4 @@config :mv, :rauthy,client_id: "mv",base_url: "http://localhost:8080/auth/v1",client_secret: "GWGkEWBLRAzZruXhipQKSjeaOtwZtKdETBABHLAXVoqrhsJoXUOsIDfNVOXCQUEv",Since this will be different for every developer, we'll have modified files in our
git statuswhich we need to take care not togit addaccidentally 🧐 Maybe we can do something like this:and then create an
.envfile which we can add to the.gitignore? We can then automatically load.envusing an option in theJustfile:)@rafael wrote in #72 (comment):
Should we add that to the wiki in a new page "dev setup" as a disclaimer?
@rafael wrote in #72 (comment):
With the last migration it should be fixed. The migration for extensions was lost
@rafael wrote in #72 (comment):
I did not manage to solve this and wrote in the Elixir Forum. The person who developed AshAuthentication delegated me to assent to raise an issue there, what I did. I created an issue and put it on waiting so we can implement EdDSA when they respond and give me a hint what to do.
Links:
Elixir Forum: https://elixirforum.com/t/ashauthentication-eddsa-algorithm-not-working/71401/2
Issue: https://github.com/pow-auth/assent/issues/193
Our new Issue: #87
--> Link to setup client in Rauthy: https://wiki.local-it.org/doc/tutorials-ZGOrqvyJ6K#h-rauthy-und-authentication-einrichten
08b3735c1btob1f5e09eafjust testyields 7 failures, some obiously related to the addition of auth@ -1,0 +2,4 @@networks:local:rauthy-test:geht es darum rauthy zu testen? Oder um rauthy für die Ausführung von Tests?
der container wird ja immer gestartet, wenn ich just run ausführe, d.h. auch für die dev-Umgebung oder?
Das habe ich aus dem first start von den rauthy pages übernommen. Aber ja, da gebe ich dir Recht, ich benenne ihn in rauthy-dev um, denke das ist eindeutiger? Auf prod würden wir ja vrmtl nict Rauth ynutzen
@ -0,0 +62,4 @@prepare AshAuthentication.Preparations.FilterBySubjectendread :sign_in_with_rauthy dorauthy ist ja nur einer von beliebig tauschbaren OIDC-providern, oder?
Nach meinem Verständnis müsste der code sich sprachlich dann doch allgemein auf oidc provider beziehen und nicht rauthy speziell.
Wenn ich nicht irgendwas übersehe oder noch nicht verstehe
Nein da hast du Recht, vielleicht ist da auch sso passend, es wird dann auch in der UI im Button automatisch angezeigt. Ich habs jetzt einfach so gemacht um es klarer zu halten. Also für mich macht es erstmal so Sinn, aber wenn du dich mit was anderem besser fühlst kann ichs gern ändern :)
@ -77,25 +77,21 @@ defmodule Mv.Membership.Member dowhere: [present(:join_date)],message: "cannot be in the future"ist jetzt sehr picky, aber gerne sowas ausm PR raushalten :)
@ -0,0 +9,4 @@message =case activity do{:confirm_new_user, :confirm} -> "Your email address has now been confirmed"Die ganzen Messages müssten mit der Internationalisierung jetzt auch mit gettext aufgerufen werden, oder?
Yess, ist ja erst mit dem letzten merge des PRs dazu gekommen, aber kann ich jetzt nch machen.
Ich würde aber trotzdem die Übersetzungen jetzt erstmal leer machen und ehrlich gesagt dann in einem Rutsch machen.
50b603991btod7ced0d9e5