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

Configuration parameters #3

Open
C51-MobileApps opened this issue Jan 21, 2022 · 5 comments
Open

Configuration parameters #3

C51-MobileApps opened this issue Jan 21, 2022 · 5 comments

Comments

@C51-MobileApps
Copy link

Buongiorno a tutti,
stiamo appunto cercando di integrare in un’app android questo SDK per autenticarsi tramite SPID.
Ho inserito l’SDK nella nostra app e sono riuscita ad avviare la procedura di autenticazione, che però termina con un errore di tipo SPID_CONFIG_ERROR.
Questo è sicuramente dovuto al fatto che dal materiale che finora sono riuscita a reperire non mi è chiaro come impostare i due URL richiesti nella configurazione di base come da codice sottostante.

val spidConfig = SpidParams.Config(
          "https://<insert the auth url here>", // TODO
          "https://<insert the callback url here>", // TODO
          60 )

Non mi è chiaro esattamente quale dato vada inserito qui, immagino siano quelli appunto per effettivamente gestire la richiesta/risposta di autenticazione, ma non è chiaro come eventualmente ottenere o configurare questi URL o se ve ne sono alcuni di test da poter utilizzare.

Ringrazio tutti anticipatamente.
Eleonora

@dbattinelli
Copy link
Member

dbattinelli commented Jan 24, 2022

Ciao Eleonora,
le URL da inserire in configurazione sono due:

  • authPageUrl: è l’indirizzo della pagina web di autenticazione del tuo service provider (es. https://mio-service-provider.gov.it/spid/auth), puoi anche inserire un URL di test se il tuo service provider ne prevede uno.
  • callbackPageUrl: è l’indirizzo di una pagina web del service provider sul quale “atterra” l'utente dopo che si è autenticato tramite l’identity provider SPID.

Grazie per la segnalazione.

@sarthakvoi
Copy link

Hello @dbattinelli
Is it possible to integrate spid authentication via authPageUrl and callbackPageUrl and not integrating sdk at all?
I tried finding resources online but couldn't, can you help me point to the right resources if its possible?
Thanks in advance! 😄

@dbattinelli
Copy link
Member

Hi sarthakvoi, yes, it is possible, but you will develop something very similar to sdk ... we have developed this sdk because we have not found any resources available and ready for this purpose.
Regards

@luca-skrzydlewski-ssg
Copy link

Quindi è necessario comunque realizzare un SP utilizzando ad esempio Shibboleth, in quanto non è possibile eseguire la procedura di autenticazione completamente da Android, giusto?

@dbattinelli
Copy link
Member

Ciao Luca, è necessario realizzare un SP o agganciarsi ad uno già esistente. Saluti

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

No branches or pull requests

4 participants