opensaml - SAML Authentication request to Gluu server -
how can pass username password attributes in saml request shown in code below. i'm using lastpass-saml-sdk.jar communicate gluu idp server.
samlinit.initialize(); string dir = constants.metadata_location; if (dir == null) throw new samlexception("unable locate saml metadata"); idpconfig idpconfig = new idpconfig(new file(dir + "\\gluu-idp-metadata.xml")); spconfig spconfig = new spconfig(new file(dir + "\\sp-meta.xml")); samlclient client= new samlclient(spconfig, idpconfig); // when login link clicked, create auth request , // redirect idp string requestid = samlutils.generaterequestid(); string authrequest = client.generateauthnrequest(requestid); string url = client.getidpconfig().getloginurl() + "?samlrequest=" + urlencoder.encode(authrequest, "utf-8"); // redirect url... response.sendredirect(url);
you not pass username , passord directly identity provider. after have redirected user, user himself enter username , password @ idp.
here 1 of blog posts describing flow in saml web rowser profile.
Comments
Post a Comment