├── .gitignore ├── README.md ├── picketlink-angularjs-rest ├── README.md ├── configure-https.cli ├── configure-mail.cli ├── pom.xml ├── remove-https.cli ├── remove-mail.cli └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── as │ │ │ └── quickstarts │ │ │ └── picketlink │ │ │ └── angularjs │ │ │ ├── JaxRsActivator.java │ │ │ ├── model │ │ │ ├── Email.java │ │ │ └── Person.java │ │ │ ├── security │ │ │ ├── HttpSecurityConfiguration.java │ │ │ ├── IdentityManagementConfiguration.java │ │ │ ├── SecurityInitializer.java │ │ │ ├── authentication │ │ │ │ ├── JWSToken.java │ │ │ │ └── JWSTokenProvider.java │ │ │ ├── model │ │ │ │ ├── ApplicationRole.java │ │ │ │ ├── IdentityModelManager.java │ │ │ │ ├── MyUser.java │ │ │ │ ├── UserRegistration.java │ │ │ │ └── entity │ │ │ │ │ └── MyUserTypeEntity.java │ │ │ ├── service │ │ │ │ ├── AccountService.java │ │ │ │ ├── LogoutService.java │ │ │ │ └── RegistrationService.java │ │ │ └── util │ │ │ │ └── RestExceptionMapper.java │ │ │ ├── service │ │ │ ├── MailService.java │ │ │ └── PersonService.java │ │ │ └── util │ │ │ ├── MessageBuilder.java │ │ │ └── Resources.java │ ├── resources │ │ ├── META-INF │ │ │ └── persistence.xml │ │ └── keystore.jks │ └── webapp │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── example-ds.xml │ │ └── web.xml │ │ ├── css │ │ ├── animations.css │ │ ├── bootstrap.min.css │ │ └── starter-template.css │ │ ├── index.html │ │ ├── js │ │ ├── app.js │ │ ├── controllers.js │ │ ├── libs │ │ │ ├── angular │ │ │ │ ├── angular-resource.min.js │ │ │ │ ├── angular-route.min.js │ │ │ │ └── angular.min.js │ │ │ ├── bootstrap │ │ │ │ ├── bootstrap.min.js │ │ │ │ └── jquery.min.js │ │ │ └── security │ │ │ │ └── jwt.js │ │ ├── security.js │ │ └── services.js │ │ └── partials │ │ ├── about.html │ │ ├── activate.html │ │ ├── contact.html │ │ ├── home.html │ │ ├── invalidActivationCode.html │ │ ├── login.html │ │ ├── signup.html │ │ └── successfulRegistration.html │ └── test │ └── resources │ ├── META-INF │ ├── mysql-connector-java-5.1.29-bin.jar │ └── test-persistence.xml │ ├── arquillian.xml │ └── test-ds.xml ├── picketlink-authentication-facebook ├── README.md ├── configure-facebook.cli ├── pom.xml ├── remove-facebook.cli └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── facebook │ │ ├── AuthenticatorSelector.java │ │ ├── ConfigurationProducer.java │ │ ├── FacebookFilter.java │ │ ├── Resources.java │ │ └── ThreadLocalUtils.java │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── images │ └── fb_login_icon.gif │ └── index.html ├── picketlink-authentication-form-terms ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── form │ │ ├── IDMInitializer.java │ │ └── TermsOfServiceFilter.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── web.xml │ ├── home.xhtml │ ├── index.html │ ├── protected │ ├── error.xhtml │ ├── login.xhtml │ └── private.xhtml │ ├── termsofservice-disagreed.html │ └── termsofservice.html ├── picketlink-authentication-form-with-jsf ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── form │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── error.xhtml │ ├── home.xhtml │ ├── index.html │ ├── login.xhtml │ └── protected │ ├── private.xhtml │ └── savedRequest.xhtml ├── picketlink-authentication-form ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── form │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── error.xhtml │ ├── home.xhtml │ ├── index.html │ ├── login.xhtml │ └── protected │ └── private.xhtml ├── picketlink-authentication-http-basic ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── basic │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── index.html │ └── protected │ └── private.xhtml ├── picketlink-authentication-http-client-cert ├── README.md ├── configure-https.cli ├── pom.xml ├── remove-https.cli └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── basic │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── index.html │ └── protected │ └── private.xhtml ├── picketlink-authentication-http-digest ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── digest │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── index.html │ └── protected │ └── private.xhtml ├── picketlink-authentication-idm-jsf ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── idm │ │ └── jsf │ │ ├── LoginController.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authentication-idm-multi-tenancy ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── idm │ │ └── multitenancy │ │ └── jsf │ │ ├── HttpSecurityConfiguration.java │ │ ├── LoginController.java │ │ ├── RealmSelector.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ ├── resources │ └── META-INF │ │ └── persistence.xml │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-idm-mt-ds.xml │ ├── accessDenied.xhtml │ ├── companies │ ├── acme │ │ └── index.xhtml │ ├── index.xhtml │ ├── umbrella │ │ └── index.xhtml │ └── wayne │ │ └── index.xhtml │ ├── css │ └── style.css │ ├── home.xhtml │ └── index.html ├── picketlink-authentication-jsf ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── jsf │ │ ├── Resources.java │ │ └── SimpleAuthenticator.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authentication-recaptcha ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── recaptcha │ │ └── jsf │ │ ├── LoginController.java │ │ ├── ReCaptchaService.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authentication-rs-endpoint ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── rest │ │ ├── AuthenticationService.java │ │ ├── CustomAuthenticator.java │ │ ├── LogoutService.java │ │ └── SimpleTokenCredential.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── web.xml │ ├── index.html │ └── resources │ └── js │ ├── jquery-1.7.1.js │ └── security.js ├── picketlink-authentication-security-level ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── totp │ │ └── jsf │ │ ├── AuthenticationManager.java │ │ ├── CustomSecurityLevelResolver.java │ │ ├── HttpSecurityConfiguration.java │ │ ├── IdentityManagementConfiguration.java │ │ ├── LevelProtectedBean.java │ │ ├── Resources.java │ │ ├── SecurityInitializer.java │ │ └── exception │ │ ├── CustomExceptionHandler.java │ │ └── CustomExceptionHandlerFactory.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── web.xml │ ├── home.xhtml │ ├── index.html │ ├── js │ └── jquery.qrcode.min.js │ ├── login.xhtml │ ├── loginFailed.xhtml │ └── raiseLevel.xhtml ├── picketlink-authentication-twitter ├── README.md ├── configure-twitter.cli ├── pom.xml ├── remove-twitter.cli └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── twitter │ │ ├── AuthenticatorSelector.java │ │ ├── ConfigurationProducer.java │ │ ├── Resources.java │ │ ├── ThreadLocalUtils.java │ │ └── TwitterFilter.java │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── images │ └── login-with-twitter.png │ └── index.html ├── picketlink-authentication-two-factor ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── totp │ │ └── jsf │ │ ├── IdentityManagementConfiguration.java │ │ ├── LoginController.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── home.xhtml │ ├── index.html │ ├── js │ └── jquery.qrcode.min.js │ └── secretSetup.xhtml ├── picketlink-authorization-acl ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── quickstarts │ │ └── picketlink │ │ └── acl │ │ ├── ArticleController.java │ │ ├── LoginController.java │ │ ├── Resources.java │ │ ├── SecurityConfiguration.java │ │ ├── SecurityInitializer.java │ │ └── model │ │ └── Article.java │ ├── resources │ └── META-INF │ │ └── persistence.xml │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-ds.xml │ ├── article.xhtml │ ├── home.xhtml │ └── index.html ├── picketlink-authorization-drools ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authorization │ │ └── drools │ │ ├── AuthorizationChecker.java │ │ ├── IDMConfiguration.java │ │ ├── IDMInitializer.java │ │ ├── LoginController.java │ │ ├── PermissionAuthorizer.java │ │ ├── Resources.java │ │ ├── TestController.java │ │ └── TimeRestricted.java │ ├── resources │ ├── META-INF │ │ ├── kmodule.xml │ │ ├── persistence.xml │ │ └── pom.properties │ └── security │ │ └── security-rules.drl │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-ds.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authorization-idm-jpa-with-ldap ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authorization │ │ └── idm │ │ └── jpa │ │ ├── AttributeReferenceTypeEntity.java │ │ ├── AuthorizationChecker.java │ │ ├── IdentityManagementConfiguration.java │ │ ├── LoginController.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ ├── resources │ └── META-INF │ │ └── persistence.xml │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-ds.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authorization-idm-jpa-with-subsystem ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authorization │ │ └── idm │ │ └── jpa │ │ ├── AuthorizationChecker.java │ │ ├── IdentityManagementConfiguration.java │ │ ├── LoginController.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-ds.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authorization-idm-jpa ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authorization │ │ └── idm │ │ └── jpa │ │ ├── AuthorizationChecker.java │ │ ├── IdentityManagementConfiguration.java │ │ ├── LoginController.java │ │ ├── Resources.java │ │ └── SecurityInitializer.java │ ├── resources │ └── META-INF │ │ └── persistence.xml │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── picketlink-quickstart-ds.xml │ ├── home.xhtml │ └── index.html ├── picketlink-authorization-idm-ldap ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── jboss │ │ │ └── as │ │ │ └── quickstarts │ │ │ └── picketlink │ │ │ └── idm │ │ │ └── ldap │ │ │ ├── ApplicationRole.java │ │ │ ├── AuthorizationManager.java │ │ │ ├── IdentityManagementConfiguration.java │ │ │ ├── LoginController.java │ │ │ ├── Resources.java │ │ │ └── SecurityInitializer.java │ └── webapp │ │ ├── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ └── web.xml │ │ ├── home.xhtml │ │ ├── index.html │ │ ├── login.xhtml │ │ └── resources │ │ └── css │ │ └── style.css │ └── test │ ├── java │ └── LDAPServer.java │ └── resources │ ├── ldap │ └── users.ldif │ └── log4j.xml ├── picketlink-authorization-rs-rbac ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authorization │ │ └── rest │ │ └── rbac │ │ ├── ApplicationRole.java │ │ ├── ApplicationServices.java │ │ ├── AuthenticationService.java │ │ ├── LogoutService.java │ │ ├── RestExceptionMapper.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── web.xml │ ├── index.html │ └── resources │ ├── css │ └── style.css │ └── js │ ├── jquery-1.7.1.js │ └── security.js ├── picketlink-deltaspike-authorization ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── deltaspike │ │ └── authorization │ │ ├── Controller.java │ │ ├── CustomAuthorizer.java │ │ ├── SecurityInitializer.java │ │ ├── annotations │ │ ├── Admin.java │ │ └── Employee.java │ │ └── util │ │ └── Resources.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── web.xml │ ├── error.xhtml │ ├── index.html │ └── welcome.xhtml ├── picketlink-events ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── events │ │ ├── ExampleObserver.java │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── error.xhtml │ ├── home.xhtml │ ├── index.html │ ├── login.xhtml │ └── protected │ └── private.xhtml ├── picketlink-federation-saml-dynamic-idp-resolution ├── README.md ├── configure-security-domain.cli ├── ear │ ├── pom.xml │ └── src │ │ └── main │ │ └── application │ │ └── META-INF │ │ └── jboss-deployment-structure.xml ├── idp-default │ ├── pom.xml │ └── src │ │ └── main │ │ ├── resources │ │ └── jbid_test_keystore.jks │ │ └── webapp │ │ ├── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml │ │ └── index.jsp ├── idp-one │ ├── pom.xml │ └── src │ │ └── main │ │ ├── resources │ │ └── jbid_test_keystore.jks │ │ └── webapp │ │ ├── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml │ │ └── index.jsp ├── idp-two │ ├── pom.xml │ └── src │ │ └── main │ │ ├── resources │ │ └── jbid_test_keystore.jks │ │ └── webapp │ │ ├── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml │ │ └── index.jsp ├── pom.xml ├── remove-security-domain.cli └── service-provider │ ├── pom.xml │ └── src │ └── main │ ├── java │ └── org │ │ └── picketlink │ │ └── quickstarts │ │ └── federation │ │ └── saml │ │ └── DynamicIdPSAML2AuthenticationHandler.java │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── WEB-INF │ ├── jboss-web.xml │ └── picketlink.xml │ └── index.jsp ├── picketlink-federation-saml-idp-basic ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ ├── jboss-web.xml │ │ │ ├── picketlink.xml │ │ │ └── web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ ├── roles.properties │ └── users.properties │ └── webapp │ ├── css │ └── idp.css │ ├── favicon.ico │ ├── hosted │ └── index.jsp │ ├── images │ ├── bkg.gif │ ├── picketlink-banner-1180px.png │ └── rh_bg.png │ ├── index.jsp │ └── jsp │ ├── error.jsp │ ├── login-error.jsp │ └── login.jsp ├── picketlink-federation-saml-idp-servlet-filter ├── README.md ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── jboss-web.xml │ ├── picketlink.xml │ └── web.xml │ └── hosted │ └── index.jsp ├── picketlink-federation-saml-idp-terms ├── README.md ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ └── idp │ │ └── terms │ │ └── TermsOfServiceFilter.java │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── jboss-web.xml │ ├── picketlink.xml │ └── web.xml │ ├── hosted │ └── index.jsp │ ├── termsofservice-disagreed.html │ └── termsofservice.html ├── picketlink-federation-saml-idp-with-encryption ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ ├── jboss-web.xml │ │ │ ├── picketlink.xml │ │ │ └── web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ └── hosted │ └── index.jsp ├── picketlink-federation-saml-idp-with-metadata ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ ├── jboss-web.xml │ │ │ ├── picketlink.xml │ │ │ └── web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ ├── idp-metadata.xml │ ├── jbid_test_keystore.jks │ └── sp-metadata.xml │ └── webapp │ └── .gitempty ├── picketlink-federation-saml-idp-with-signature ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ ├── jboss-web.xml │ │ │ ├── picketlink.xml │ │ │ └── web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── jboss-web.xml │ │ ├── picketlink.xml │ │ └── web.xml ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── hosted │ └── index.jsp │ └── index.jsp ├── picketlink-federation-saml-idp-with-ssl ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ ├── jboss-web.xml │ │ │ ├── picketlink.xml │ │ │ └── web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── picketlink.xml │ │ └── web.xml ├── configure-security-domain.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── roles.properties │ └── webapp │ └── .gitempty ├── picketlink-federation-saml-sp-idp-chooser ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── java │ └── MyAccountChooser.java │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── WEB-INF │ └── picketlink.xml │ └── accountChooser.html ├── picketlink-federation-saml-sp-post-basic ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ └── webapp │ ├── WEB-INF │ ├── picketlink.xml │ └── web.xml │ ├── css │ └── idp.css │ ├── error.jsp │ ├── favicon.ico │ ├── freezone │ └── freezone.jsp │ ├── images │ ├── bkg.gif │ ├── picketlink-banner-1180px.png │ └── rh_bg.png │ ├── index.jsp │ ├── logout.jsp │ └── piechart.gif ├── picketlink-federation-saml-sp-post-with-signature ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ └── WEB-INF │ └── picketlink.xml ├── picketlink-federation-saml-sp-post-with-ssl ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ └── WEB-INF │ └── picketlink.xml ├── picketlink-federation-saml-sp-redirect-basic ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ └── webapp │ ├── META-INF │ └── jboss-deployment-structure.xml │ ├── WEB-INF │ ├── picketlink.xml │ └── web.xml │ ├── careermap.jpg │ ├── css │ └── idp.css │ ├── error.jsp │ ├── favicon.ico │ ├── freezone │ └── freezone.jsp │ ├── images │ ├── bkg.gif │ ├── picketlink-banner-1180px.png │ └── rh_bg.png │ ├── index.jsp │ └── logout.jsp ├── picketlink-federation-saml-sp-redirect-with-signature ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ └── WEB-INF │ └── picketlink.xml ├── picketlink-federation-saml-sp-with-encryption ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ └── jboss-web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ └── WEB-INF │ └── picketlink.xml ├── picketlink-federation-saml-sp-with-metadata ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ ├── classes │ │ └── META-INF │ │ │ └── services │ │ │ └── io.undertow.servlet.ServletExtension │ │ ├── jboss-web.xml │ │ └── web.xml ├── configure-security-domain-eap.cli ├── configure-security-domain-wildfly.cli ├── pom.xml ├── remove-security-domain.cli └── src │ └── main │ ├── resources │ ├── idp-metadata.xml │ ├── jbid_test_keystore.jks │ └── sp-metadata.xml │ └── webapp │ └── WEB-INF │ └── picketlink.xml ├── picketlink-federation-saml-sp-with-servlet-filter ├── README.md ├── conf │ ├── jboss-eap │ │ ├── META-INF │ │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ │ └── jboss-web.xml │ └── wildfly │ │ ├── META-INF │ │ └── jboss-deployment-structure.xml │ │ └── WEB-INF │ │ └── jboss-web.xml ├── pom.xml └── src │ └── main │ ├── resources │ └── jbid_test_keystore.jks │ └── webapp │ ├── WEB-INF │ ├── picketlink.xml │ └── web.xml │ └── index.jsp ├── picketlink-http-servlet-integration ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── picketlink │ │ └── quickstarts │ │ └── http │ │ └── servlet │ │ ├── AuthenticationServlet.java │ │ ├── HttpSecurityConfiguration.java │ │ └── SecurityInitializer.java │ └── webapp │ ├── WEB-INF │ └── beans.xml │ └── index.jsp ├── picketlink-idm-custom-identity-model ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── picketlink │ │ └── quickstart │ │ └── identitymodel │ │ ├── Application.java │ │ ├── ApplicationAccess.java │ │ ├── ApplicationRealm.java │ │ ├── Grant.java │ │ ├── Group.java │ │ ├── GroupMembership.java │ │ ├── Realm.java │ │ ├── Role.java │ │ ├── User.java │ │ └── entity │ │ ├── AbstractIdentityTypeEntity.java │ │ ├── ApplicationAccessTypeEntity.java │ │ ├── ApplicationRealmTypeEntity.java │ │ ├── ApplicationTypeEntity.java │ │ ├── GrantTypeEntity.java │ │ ├── GroupMembershipTypeEntity.java │ │ ├── GroupTypeEntity.java │ │ ├── PartitionTypeEntity.java │ │ ├── PasswordCredentialTypeEntity.java │ │ ├── RealmTypeEntity.java │ │ ├── RelationshipIdentityTypeEntity.java │ │ ├── RelationshipTypeEntity.java │ │ ├── RoleTypeEntity.java │ │ └── UserTypeEntity.java │ └── test │ ├── java │ └── org │ │ └── picketlink │ │ └── quickstart │ │ └── identitymodel │ │ └── test │ │ ├── AbstractIdentityManagementTestCase.java │ │ ├── ApplicationAccessTestCase.java │ │ ├── ApplicationTestCase.java │ │ ├── GrantTestCase.java │ │ ├── GroupMembershipTestCase.java │ │ ├── GroupTestCase.java │ │ ├── RealmTestCase.java │ │ ├── RoleTestCase.java │ │ └── UserTestCase.java │ └── resources │ └── META-INF │ └── persistence.xml ├── picketlink-levels-complex ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── jboss │ │ └── as │ │ └── quickstarts │ │ └── picketlink │ │ └── authentication │ │ ├── bussiness │ │ ├── BookManager.java │ │ ├── LevelComparator.java │ │ └── OrderManager.java │ │ ├── jsf │ │ ├── OrderController.java │ │ ├── Resources.java │ │ ├── SettingsController.java │ │ ├── SmsLogInController.java │ │ ├── authentication │ │ │ ├── ContextCheck.java │ │ │ ├── SimpleAuthenticator.java │ │ │ ├── SmsAuthenticator.java │ │ │ └── SmsCode.java │ │ └── exceptions │ │ │ ├── SimpleExceptionHandler.java │ │ │ └── SimpleExceptionHandlerFactory.java │ │ └── model │ │ ├── Book.java │ │ ├── Order.java │ │ └── UserSettings.java │ └── webapp │ ├── WEB-INF │ ├── beans.xml │ └── faces-config.xml │ ├── error.xhtml │ ├── home.xhtml │ ├── index.html │ ├── pay.xhtml │ └── smsLogIn.xhtml └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | target 3 | .DS_Store 4 | .faces-config.xml.faceside 5 | .faces-config.xml.jsfdia 6 | MANIFEST.MF 7 | bin 8 | .openshift 9 | */.gitignore 10 | .gitkeep 11 | /helloworld-jsp 12 | README.html 13 | CONTRIBUTING.html 14 | RELEASE_PROCEDURE.html 15 | .errai 16 | helloworld-gwt/src/main/gwt-unitCache 17 | helloworld-gwt/src/main/webapp/HelloWorldApp 18 | helloworld-gwt/src/main/webapp/WEB-INF/deploy 19 | out 20 | .idea 21 | *.ipr 22 | *.iws 23 | *.iml 24 | atlassian-ide-plugin.xml 25 | .classpath 26 | .project 27 | .settings 28 | .metadata 29 | bin 30 | .nbattrs 31 | *.log 32 | .clover 33 | *.swp 34 | !/wicket-war/src/main/resources/META-INF/MANIFEST.MF 35 | build.sh -------------------------------------------------------------------------------- /picketlink-angularjs-rest/configure-https.cli: -------------------------------------------------------------------------------- 1 | # JBoss, Home of Professional Open Source 2 | # Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 3 | # contributors by the @authors tag. See the copyright.txt in the 4 | # distribution for a full listing of individual contributors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Add the https connector with the necessary ssl configuration 17 | //subsystem=web/connector=https:add(protocol="HTTP/1.1",scheme="https",socket-binding="https",enable-lookups="false",secure="true") 18 | //subsystem=web/connector=https/ssl=configuration:add(name="localhost-ssl",key-alias="server",password="change_it",certificate-key-file="${jboss.server.config.dir}/server.keystore",protocol="TLSv1") 19 | 20 | # Reload the server configuration 21 | :reload 22 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/remove-https.cli: -------------------------------------------------------------------------------- 1 | # JBoss, Home of Professional Open Source 2 | # Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 3 | # contributors by the @authors tag. See the copyright.txt in the 4 | # distribution for a full listing of individual contributors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Remove the https connector 17 | //subsystem=web/connector=https:remove 18 | 19 | # Reload the server configuration 20 | :reload 21 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/remove-mail.cli: -------------------------------------------------------------------------------- 1 | # JBoss, Home of Professional Open Source 2 | # Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 3 | # contributors by the @authors tag. See the copyright.txt in the 4 | # distribution for a full listing of individual contributors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Remove the https connector 17 | /subsystem=mail/mail-session="java\:/mail/gmail":remove 18 | /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp-gmail:remove 19 | 20 | # Reload the server configuration 21 | :reload 22 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/java/org/jboss/as/quickstarts/picketlink/angularjs/model/Email.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.angularjs.model; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | public class Email { 7 | 8 | private final String subject; 9 | private final String body; 10 | private final List address; 11 | 12 | public Email(String subject, String body, String... addresses) { 13 | this.subject = subject; 14 | this.body = body; 15 | this.address = Arrays.asList(addresses); 16 | } 17 | 18 | public String getSubject() { 19 | return this.subject; 20 | } 21 | 22 | public List getAddress() { 23 | return this.address; 24 | } 25 | 26 | public String getBody() { 27 | return this.body; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/java/org/jboss/as/quickstarts/picketlink/angularjs/security/model/ApplicationRole.java: -------------------------------------------------------------------------------- 1 | /** 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.as.quickstarts.picketlink.angularjs.security.model; 18 | 19 | /** 20 | *

Roles supported by this application.

21 | * 22 | * @author pedroigor 23 | */ 24 | public interface ApplicationRole { 25 | 26 | String ADMINISTRATOR = "Administrator"; 27 | String USER = "User"; 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/java/org/jboss/as/quickstarts/picketlink/angularjs/util/Resources.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.angularjs.util; 2 | 3 | import javax.enterprise.inject.Produces; 4 | import javax.persistence.EntityManager; 5 | import javax.persistence.PersistenceContext; 6 | 7 | /** 8 | * This class uses CDI to alias Java EE resources, such as the persistence context, to CDI beans 9 | * 10 | *

11 | * Example injection on a managed bean field: 12 | *

13 | * 14 | *
15 |  * @Inject
16 |  * private EntityManager entityManager;
17 |  * 
18 | */ 19 | public class Resources { 20 | 21 | /** 22 | * Alias the persistence context 23 | */ 24 | // use @SuppressWarnings to tell IDE to ignore warnings about field not being referenced directly 25 | @Produces 26 | @PersistenceContext 27 | private EntityManager entityManager; 28 | } 29 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/resources/keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-angularjs-rest/src/main/resources/keystore.jks -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | org.apache.deltaspike.security.impl.extension.SecurityInterceptor 12 | 13 | 14 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/WEB-INF/example-ds.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 10 | 13 | jdbc:h2:mem:example-ds;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1 14 | h2 15 | 16 | sa 17 | sa 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | JaxRsActivator 8 | /* 9 | 10 | 11 | CONFIDENTIAL 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/css/animations.css: -------------------------------------------------------------------------------- 1 | .animate-show { 2 | line-height:20px; 3 | opacity:1; 4 | padding:10px; 5 | border:1px solid black; 6 | background:white; 7 | } 8 | 9 | .animate-show.ng-hide-add, 10 | .animate-show.ng-hide-remove { 11 | display:block!important; 12 | } 13 | 14 | .animate-show.ng-hide-add.ng-hide-add-active, 15 | .animate-show.ng-hide-remove.ng-hide-remove-active { 16 | -webkit-transition:all linear 0.5s; 17 | transition:all linear 0.5s; 18 | } 19 | 20 | .animate-show.ng-hide { 21 | line-height:0; 22 | opacity:0; 23 | padding:0 10px; 24 | } 25 | 26 | .check-element { 27 | padding:10px; 28 | border:1px solid black; 29 | background:white; 30 | } -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/css/starter-template.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } 8 | 9 | #messages { 10 | float: left; 11 | position: absolute; 12 | width: 100%; 13 | z-index: 999; 14 | } 15 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/about.html: -------------------------------------------------------------------------------- 1 |

About

2 | 3 |
4 |
5 |

Example code to show how to use, PicketLink stateless authentication, to secure a Restfull service.

6 |

For more information please visit picketlink.org.

7 |
8 |
9 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/activate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |

You should be redirected automatically

6 | 7 |
8 |

In This screen you can register to the service.

9 |
10 | 11 |
12 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/contact.html: -------------------------------------------------------------------------------- 1 |

Contact

2 | 3 |
4 |
5 |

Please visit picketlink.org.

6 |
7 |
8 | -------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/home.html: -------------------------------------------------------------------------------- 1 |

2 |

Welcome !

3 | Registered Users 4 |

5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 |
IdEmailAction
{{user.id}}{{user.email}} 18 | 19 | 20 |
22 |
23 | 24 | 25 | 26 |
-------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/invalidActivationCode.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Invalid Activation Code

4 |

An activation code was sent to your e-mail. Check the instructions about how to continue with the registration process in order to enable your new account.

5 |
-------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/login.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 6 | 7 |
8 | 9 | 10 |
11 |
12 | 13 | 14 |
15 | 16 |

Hint: If you want to sign in as an administrator use: admin@picketlink.org/admin

17 |
18 |
19 | 20 |
21 |
-------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/main/webapp/partials/successfulRegistration.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Thank You !

4 |

An activation code was sent to your e-mail. Check the instructions about how to continue with the registration process in order to enable your new account.

5 |
-------------------------------------------------------------------------------- /picketlink-angularjs-rest/src/test/resources/META-INF/mysql-connector-java-5.1.29-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-angularjs-rest/src/test/resources/META-INF/mysql-connector-java-5.1.29-bin.jar -------------------------------------------------------------------------------- /picketlink-authentication-facebook/configure-facebook.cli: -------------------------------------------------------------------------------- 1 | # Batch script to configure the FaceBook application 2 | batch 3 | 4 | # Configure the FaceBook information 5 | ### NOTE: Be sure to replace YOUR_CLIENT_ID, YOUR_CLIENT_SECRET_CODE, and YOUR_RETURN_URL 6 | ### with the values provided when you registered as a Facebook developer. 7 | /system-property=FB_CLIENT_ID:add(value="YOUR_CLIENT_ID") 8 | /system-property=FB_CLIENT_SECRET:add(value="YOUR_CLIENT_SECRET_CODE") 9 | /system-property=FB_RETURN_URL:add(value="YOUR_RETURN_URL") 10 | 11 | 12 | # Run the batch commands 13 | run-batch 14 | 15 | # Reload the server configuration 16 | :reload 17 | 18 | 19 | -------------------------------------------------------------------------------- /picketlink-authentication-facebook/remove-facebook.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the Facebook configuration 2 | batch 3 | 4 | # Rmove the Facebook sytem-properties 5 | /system-property=FB_CLIENT_ID:remove 6 | /system-property=FB_CLIENT_SECRET:remove 7 | /system-property=FB_RETURN_URL:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload 14 | 15 | 16 | -------------------------------------------------------------------------------- /picketlink-authentication-facebook/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /picketlink-authentication-facebook/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-facebook/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-facebook/src/main/webapp/images/fb_login_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-authentication-facebook/src/main/webapp/images/fb_login_icon.gif -------------------------------------------------------------------------------- /picketlink-authentication-facebook/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/protected/error.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Sorry, there was an error! 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/protected/private.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Hi #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/termsofservice-disagreed.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |

20 | You have disagreed to the Terms of Service. 21 |

22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-terms/src/main/webapp/termsofservice.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |
20 |

21 | Do you agree to Terms of Service? 22 |

23 | true
24 | false
25 | 26 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /picketlink-authentication-form-with-jsf/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-with-jsf/src/main/webapp/error.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Sorry, there was an error! 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form-with-jsf/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-form-with-jsf/src/main/webapp/protected/savedRequest.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Saved request. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form/src/main/webapp/error.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Sorry, there was an error! 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-form/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-http-basic/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-http-basic/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-http-basic/src/main/webapp/protected/private.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Hi #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-http-client-cert/remove-https.cli: -------------------------------------------------------------------------------- 1 | # JBoss, Home of Professional Open Source 2 | # Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 3 | # contributors by the @authors tag. See the copyright.txt in the 4 | # distribution for a full listing of individual contributors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Remove the https connector 17 | //subsystem=web/connector=https:remove 18 | 19 | # Reload the server configuration 20 | :reload 21 | -------------------------------------------------------------------------------- /picketlink-authentication-http-client-cert/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-http-client-cert/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-http-client-cert/src/main/webapp/protected/private.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Hi #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-http-digest/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-http-digest/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-http-digest/src/main/webapp/protected/private.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Hi #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-idm-jsf/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-idm-jsf/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-idm-jsf/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-idm-multi-tenancy/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-idm-multi-tenancy/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-jsf/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-jsf/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-jsf/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-recaptcha/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-recaptcha/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-rs-endpoint/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 24 | 25 | -------------------------------------------------------------------------------- /picketlink-authentication-security-level/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authentication-security-level/src/main/webapp/loginFailed.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Authentication failed. 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/configure-twitter.cli: -------------------------------------------------------------------------------- 1 | # Batch script to configure the Twitter application 2 | batch 3 | 4 | # Configure the Twitter App information 5 | ### NOTE: Be sure to replace YOUR_CLIENT_ID, YOUR_CLIENT_SECRET_CODE, and YOUR_RETURN_URL 6 | ### with the values provided when you registered as a Twitter developer. 7 | /system-property=TWIT_CLIENT_ID:add(value="YOUR_CLIENT_ID") 8 | /system-property=TWIT_CLIENT_SECRET:add(value="YOUR_CLIENT_SECRET_CODE") 9 | /system-property=TWIT_RETURN_URL:add(value="YOUR_RETURN_URL") 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | 18 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/remove-twitter.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the Twitter configuration 2 | batch 3 | 4 | # Rmove the Twitter sytem-properties 5 | /system-property=TWIT_CLIENT_ID:remove 6 | /system-property=TWIT_CLIENT_SECRET:remove 7 | /system-property=TWIT_RETURN_URL:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload 14 | 15 | 16 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-twitter/src/main/webapp/images/login-with-twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-authentication-twitter/src/main/webapp/images/login-with-twitter.png -------------------------------------------------------------------------------- /picketlink-authentication-twitter/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-two-factor/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authentication-two-factor/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authorization-acl/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-acl/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/java/org/jboss/as/quickstarts/picketlink/authorization/drools/TimeRestricted.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authorization.drools; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.ElementType; 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | import java.lang.annotation.Target; 8 | 9 | import org.apache.deltaspike.security.api.authorization.SecurityBindingType; 10 | 11 | /** 12 | * A security binding type annotation that restricts access to the annotated method 13 | * to certain groups at certain times of the day 14 | * 15 | * @author Shane Bryzak 16 | */ 17 | @Retention(value = RetentionPolicy.RUNTIME) 18 | @Target({ ElementType.TYPE, ElementType.METHOD }) 19 | @Documented 20 | @SecurityBindingType 21 | public @interface TimeRestricted { 22 | 23 | } 24 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/resources/META-INF/kmodule.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/resources/META-INF/pom.properties: -------------------------------------------------------------------------------- 1 | version=${project.version} 2 | groupId=${project.groupId} 3 | artifactId=${project.artifactId} 4 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/resources/security/security-rules.drl: -------------------------------------------------------------------------------- 1 | package PicketLinkPermissions; 2 | 3 | dialect 'mvel' 4 | 5 | import org.picketlink.idm.drools.PermissionCheck; 6 | 7 | rule InvokeTestAction 8 | no-loop 9 | activation-group "permissions" 10 | when 11 | check: PermissionCheck(resource == "TestAction", operation == "invoke", granted == false) 12 | then 13 | check.grant(); 14 | end 15 | 16 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-drools/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa-with-ldap/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa-with-ldap/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa-with-subsystem/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa-with-subsystem/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa-with-subsystem/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-jpa/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-ldap/src/main/java/org/jboss/as/quickstarts/picketlink/idm/ldap/ApplicationRole.java: -------------------------------------------------------------------------------- 1 | /** 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.as.quickstarts.picketlink.idm.ldap; 18 | 19 | /** 20 | *

Roles supported by this application.

21 | * 22 | * @author pedroigor 23 | */ 24 | public enum ApplicationRole { 25 | 26 | PROJECT_MANAGER, 27 | DEVELOPER, 28 | ADMINISTRATOR; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-ldap/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-ldap/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-ldap/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-authorization-idm-ldap/src/test/resources/ldap/users.ldif: -------------------------------------------------------------------------------- 1 | dn: dc=jboss,dc=org 2 | objectclass: dcObject 3 | objectclass: organization 4 | o: JBoss 5 | dc: JBoss 6 | 7 | dn: ou=People,dc=jboss,dc=org 8 | objectclass: top 9 | objectclass: organizationalUnit 10 | ou: People 11 | 12 | dn: ou=Agent,dc=jboss,dc=org 13 | objectclass: top 14 | objectclass: organizationalUnit 15 | ou: Agent 16 | 17 | dn: ou=Roles,dc=jboss,dc=org 18 | objectclass: top 19 | objectclass: organizationalUnit 20 | ou: Roles 21 | 22 | dn: ou=Groups,dc=jboss,dc=org 23 | objectclass: top 24 | objectclass: organizationalUnit 25 | ou: Groups -------------------------------------------------------------------------------- /picketlink-deltaspike-authorization/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-events/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-events/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-events/src/main/webapp/error.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 | Sorry, there was an error! 22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-events/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /picketlink-events/src/main/webapp/protected/private.xhtml: -------------------------------------------------------------------------------- 1 | 17 | 20 | 21 |

Hi #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated.

22 |

Click here to Logout

23 | 24 | 25 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain for the Identity Providers 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Add and configure the security domain for the Service Provider 12 | /subsystem=security/security-domain=sp:add(cache-type=default) 13 | /subsystem=security/security-domain=sp/authentication=classic:add 14 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 15 | 16 | # Run the batch commands 17 | run-batch 18 | 19 | # Reload the server configuration 20 | :reload 21 | 22 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/ear/src/main/application/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-default/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-dynamic-idp-resolution/idp-default/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-default/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-default 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-one/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-dynamic-idp-resolution/idp-one/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-one/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-one 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-two/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-dynamic-idp-resolution/idp-two/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/idp-two/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-two 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | /subsystem=security/security-domain=sp:remove 9 | 10 | # Run the batch commands 11 | run-batch 12 | 13 | # Reload the server configuration 14 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/service-provider/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-dynamic-idp-resolution/service-provider/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-dynamic-idp-resolution/service-provider/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | sp 5 | 6 | 7 | service-provider 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp 8 | 9 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/resources/roles.properties: -------------------------------------------------------------------------------- 1 | tomcat=manager,sales,employee -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/resources/users.properties: -------------------------------------------------------------------------------- 1 | tomcat=tomcat -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-basic/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/webapp/images/bkg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-basic/src/main/webapp/images/bkg.gif -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/webapp/images/picketlink-banner-1180px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-basic/src/main/webapp/images/picketlink-banner-1180px.png -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/webapp/images/rh_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-basic/src/main/webapp/images/rh_bg.png -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-basic/src/main/webapp/jsp/error.jsp: -------------------------------------------------------------------------------- 1 | Error! 2 | 3 | 4 | 5 | The username and password you supplied are not valid. 6 |

7 | Click here 8 | to retry login 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-servlet-filter/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-servlet-filter/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-servlet-filter/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-servlet-filter/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-servlet-filter/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-servlet-filter/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-filter 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-terms/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/src/main/webapp/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-terms 8 | 9 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/src/main/webapp/termsofservice-disagreed.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |

20 | You have disagreed to the Terms of Service. 21 |

22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-terms/src/main/webapp/termsofservice.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |
20 |

21 | Do you agree to Terms of Service? 22 |

23 | true
24 | false
25 | 26 | 27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-enc 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-enc 8 | 9 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-encryption/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-with-encryption/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-metadata 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | 16 | configProvider 17 | org.picketlink.identity.federation.web.config.IDPMetadataConfigurationProvider 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-metadata 8 | 9 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[password-stacking=useFirstPass,usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-with-metadata/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-metadata/src/main/webapp/.gitempty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-with-metadata/src/main/webapp/.gitempty -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-sig 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-sig 8 | 9 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[usersProperties=users.properties,rolesProperties=roles.properties]) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-signature/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-with-signature/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | idp 5 | 6 | 7 | idp-ssl 8 | 9 | 11 | 12 | org.picketlink.identity.federation.bindings.tomcat.idp.IDPWebBrowserSSOValve 13 | 14 | 15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/configure-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the UsersRoles JAAS LoginModule. 7 | /subsystem=security/security-domain=idp:add(cache-type=default) 8 | /subsystem=security/security-domain=idp/authentication=classic:add 9 | /subsystem=security/security-domain=idp/authentication=classic/login-module=CertificateRoles:add(code=CertificateRoles,flag=optional,module-options=[password-stacking=useFirstPass,securityDomain=idp,verifier=org.jboss.security.auth.certs.AnyCertVerifier]) 10 | /subsystem=security/security-domain=idp/authentication=classic/login-module=UsersRoles:add(code=UsersRoles,flag=required,module-options=[password-stacking=useFirstPass,usersProperties=users.properties,rolesProperties=roles.properties]) 11 | /subsystem=security/security-domain=idp/jsse=classic:add(keystore={password="change_it",url="${jboss.server.config.dir}/server.keystore"},truststore={"password"="change_it",url="${jboss.server.config.dir}/server.keystore"}, client-auth=true) 12 | 13 | # Run the batch commands 14 | run-batch 15 | 16 | # Reload the server configuration 17 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=idp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/src/main/resources/roles.properties: -------------------------------------------------------------------------------- 1 | CN\=client,\ OU\=client,\ O\=client,\ L\=client,\ ST\=client,\ C\=cl=manager,sales,employee 2 | tomcat=manager,sales,employee -------------------------------------------------------------------------------- /picketlink-federation-saml-idp-with-ssl/src/main/webapp/.gitempty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-idp-with-ssl/src/main/webapp/.gitempty -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-sig 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-idp-chooser/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-idp-chooser/src/main/webapp/accountChooser.html: -------------------------------------------------------------------------------- 1 | DomainA 2 |
3 | DomainB 4 | 5 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/WEB-INF/picketlink.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | ${idp.url::http://localhost:8080/idp/} 5 | ${sales-post.url::http://localhost:8080/sales-post/} 6 | 7 | localhost,jboss.com,jboss.org,amazonaws.com 8 | 9 | 10 | 11 | 13 | 15 | 17 | 19 | 20 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-basic/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/images/bkg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-basic/src/main/webapp/images/bkg.gif -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/images/picketlink-banner-1180px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-basic/src/main/webapp/images/picketlink-banner-1180px.png -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/images/rh_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-basic/src/main/webapp/images/rh_bg.png -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 |
2 |

SalesTool

3 |
4 | Welcome to the Sales Tool, <%=request.getUserPrincipal().getName()%> 5 | 6 |
7 | Here is your sales chart: 8 |
9 | 10 | 11 |
12 | Click to LogOut 13 | 14 |
15 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-basic/src/main/webapp/piechart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-basic/src/main/webapp/piechart.gif -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-sig 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-sig 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-signature/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-with-signature/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-ssl 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-ssl 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-post-with-ssl/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-post-with-ssl/src/main/webapp/WEB-INF/picketlink.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | ${idp-sig.url::https://localhost:8443/idp-ssl/} 5 | 6 | ${sales-post-sig.url::http://localhost:8080/sales-post-ssl/} 7 | 8 | 9 | 10 | 12 | 14 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | employee 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | employee 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/WEB-INF/picketlink.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | ${idp.url::http://localhost:8080/idp/} 5 | ${employee.url::http://localhost:8080/employee/} 6 | 7 | 8 | 9 | 11 | 13 | 14 | 17 | 19 | 20 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/careermap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-basic/src/main/webapp/careermap.jpg -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-basic/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/bkg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/bkg.gif -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/picketlink-banner-1180px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/picketlink-banner-1180px.png -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/rh_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-basic/src/main/webapp/images/rh_bg.png -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-basic/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 |
2 |

EmployeeDashboard

3 |
4 | Welcome to the Employee Tool, <%=request.getUserPrincipal().getName()%>. 5 |
6 | 7 |
8 | Click to LogOut 9 | 10 |
11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | employee-sig 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | employee-sig 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-redirect-with-signature/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-redirect-with-signature/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-enc 10 | 11 | 13 | 14 | org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator 15 | 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-post-enc 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-encryption/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-with-encryption/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/conf/wildfly/WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension: -------------------------------------------------------------------------------- 1 | org.picketlink.identity.federation.bindings.wildfly.sp.SPServletExtension -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | sp 7 | 8 | 9 | sales-metadata 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/configure-security-domain-eap.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/configure-security-domain-wildfly.cli: -------------------------------------------------------------------------------- 1 | # Batch script to add and configure the quickstart-domain security domain in the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Add and configure the security domain, then add the PicketLink SAML2LoginModule. Which wil be used to extract user's information from the SAML Assertion and authenticate the user. 7 | /subsystem=security/security-domain=sp:add(cache-type=default) 8 | /subsystem=security/security-domain=sp/authentication=classic:add 9 | /subsystem=security/security-domain=sp/authentication=classic/login-module=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule:add(code=org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule,flag=required) 10 | 11 | # Run the batch commands 12 | run-batch 13 | 14 | # Reload the server configuration 15 | :reload 16 | 17 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/remove-security-domain.cli: -------------------------------------------------------------------------------- 1 | # Batch script to remove the quickstart-domain security domain from the JBoss server 2 | 3 | # Start batching commands 4 | batch 5 | 6 | # Remove the security domain 7 | /subsystem=security/security-domain=sp:remove 8 | 9 | # Run the batch commands 10 | run-batch 11 | 12 | # Reload the server configuration 13 | :reload -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-metadata/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-with-metadata/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/conf/jboss-eap/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/conf/jboss-eap/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | sales-with-servlet-filter 5 | 6 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/conf/wildfly/META-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/conf/wildfly/WEB-INF/jboss-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | sales-with-servlet-filter 5 | 6 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/src/main/resources/jbid_test_keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jboss-developer/jboss-picketlink-quickstarts/9051673f8e9d561c8b6c527fe9818c7ad8f626f8/picketlink-federation-saml-sp-with-servlet-filter/src/main/resources/jbid_test_keystore.jks -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | PicketLink Sales Service Provider 7 | 8 | PicketLink Service Provider Using a Servlet Filter 9 | 10 | 11 | 12 | org.picketlink.identity.federation.web.filters.ServiceProviderContextInitializer 13 | 14 | 15 | 16 | 17 | SPFilter 18 | org.picketlink.identity.federation.web.filters.SPFilter 19 | 20 | 21 | 22 | SPFilter 23 | /* 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /picketlink-federation-saml-sp-with-servlet-filter/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 |
2 |

SalesTool

3 |
4 | Welcome to the Sales Tool With Filter, <%=request.getUserPrincipal().getName()%> 5 | 6 |
7 | Here is your sales chart: 8 |
9 | 10 | 11 |
12 | Click to LogOut 13 | 14 |
15 | -------------------------------------------------------------------------------- /picketlink-http-servlet-integration/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/bussiness/BookManager.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.bussiness; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | import javax.inject.Named; 7 | 8 | import org.jboss.as.quickstarts.picketlink.authentication.model.Book; 9 | 10 | /** 11 | *

Simulates persistance layer. It provides the application with books.

12 | * 13 | * @author Michal Trnka 14 | */ 15 | @Named 16 | public class BookManager { 17 | 18 | public List getBooks() { 19 | List books = new LinkedList(); 20 | books.add(new Book("1984", "Goerge Orwell", 100)); 21 | books.add(new Book("The Lord of the Rings", "J. R. R. Tolkien", 200)); 22 | books.add(new Book("The Little Prince", "Antoine de Saint-Exupéry", 50)); 23 | books.add(new Book("And Then There Were None", "Agatha Christie", 150)); 24 | books.add(new Book("A Tale of Two Cities", "Charles Dickens", 125)); 25 | return books; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/bussiness/LevelComparator.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.bussiness; 2 | 3 | import javax.inject.Named; 4 | 5 | import org.picketlink.authentication.levels.Level; 6 | import org.picketlink.authentication.levels.internal.DefaultLevel; 7 | 8 | /** 9 | *

Class to compare the level to the given int. It is used in JSF

10 | * 11 | * @author Michal Trnka 12 | */ 13 | @Named 14 | public class LevelComparator { 15 | 16 | public boolean hasLevel(Level l, int i){ 17 | if(l.compareTo(new DefaultLevel(i))<0){ 18 | return false; 19 | }return true; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/jsf/authentication/SmsCode.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.jsf.authentication; 2 | 3 | import org.picketlink.authentication.levels.annotations.SecurityLevel; 4 | 5 | /** 6 | *

Class used as credential for sms code.

7 | * 8 | * @author Michal Trnka 9 | */ 10 | @SecurityLevel("3") 11 | public class SmsCode{ 12 | private String code; 13 | 14 | public SmsCode(String code){ 15 | this.code = code; 16 | } 17 | 18 | public String getCode() { 19 | return code; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/jsf/exceptions/SimpleExceptionHandlerFactory.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.jsf.exceptions; 2 | 3 | import javax.faces.context.ExceptionHandler; 4 | import javax.faces.context.ExceptionHandlerFactory; 5 | 6 | /** 7 | * @author Michal Trnka 8 | */ 9 | public class SimpleExceptionHandlerFactory extends ExceptionHandlerFactory { 10 | 11 | private ExceptionHandlerFactory parent; 12 | 13 | public SimpleExceptionHandlerFactory(ExceptionHandlerFactory parent) { 14 | this.parent = parent; 15 | } 16 | 17 | @Override 18 | public ExceptionHandler getExceptionHandler() { 19 | return new SimpleExceptionHandler(parent.getExceptionHandler()); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/model/Book.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.model; 2 | 3 | /** 4 | *

Entity representing book.

5 | * 6 | * @author Michal Trnka 7 | */ 8 | public class Book { 9 | String name; 10 | 11 | String author; 12 | 13 | int price; 14 | 15 | public Book(String name, String author, int price) { 16 | this.name = name; 17 | this.author = author; 18 | this.price = price; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | public String getAuthor() { 30 | return author; 31 | } 32 | 33 | public void setAuthor(String author) { 34 | this.author = author; 35 | } 36 | 37 | public int getPrice() { 38 | return price; 39 | } 40 | 41 | public void setPrice(int price) { 42 | this.price = price; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/model/Order.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.model; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | /** 8 | *

Entity representing order.

9 | * 10 | * @author Michal Trnka 11 | */ 12 | public class Order { 13 | private List books = new ArrayList(); 14 | private Date created; 15 | 16 | public void setDate(Date created){ 17 | this.created = created; 18 | } 19 | 20 | public Date getCreated(){ 21 | return created; 22 | } 23 | 24 | public void addBook(Book book) { 25 | books.add(book); 26 | } 27 | 28 | public List getBooks() { 29 | return books; 30 | } 31 | 32 | public int getBookPrice(){ 33 | int price = 0; 34 | for(Book b : books){ 35 | price += b.getPrice(); 36 | } 37 | return price; 38 | } 39 | 40 | public int getBookCount(){ 41 | return books.size(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/java/org/jboss/as/quickstarts/picketlink/authentication/model/UserSettings.java: -------------------------------------------------------------------------------- 1 | package org.jboss.as.quickstarts.picketlink.authentication.model; 2 | 3 | import javax.annotation.PostConstruct; 4 | import javax.enterprise.context.ApplicationScoped; 5 | 6 | import org.picketlink.authorization.annotations.RequiresLevel; 7 | 8 | /** 9 | *

Entity representing userSettings.

10 | * 11 | *

Because that example has just one user this entity is created ApplicationScoped without having own manager.

12 | * 13 | * @author Michal Trnka 14 | */ 15 | @ApplicationScoped 16 | public class UserSettings { 17 | private String ip; 18 | 19 | private String address; 20 | 21 | @PostConstruct 22 | public void setUp(){ 23 | address = "Green avenue 3124, Kingstown, 33890, Awesome Republic"; 24 | ip = "0.0.0.0"; 25 | } 26 | 27 | public String getAddress() { 28 | return address; 29 | } 30 | 31 | @RequiresLevel("3") 32 | public void setAddress(String address) { 33 | this.address = address; 34 | } 35 | 36 | @RequiresLevel("3") 37 | public void setIp(String ip) { 38 | this.ip = ip.trim(); 39 | } 40 | 41 | public String getIp(){ 42 | return ip; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 16 | 17 | org.apache.deltaspike.security.impl.extension.SecurityInterceptor 18 | 19 | 20 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/webapp/error.xhtml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 |

Some general error.

22 | 23 | 24 | -------------------------------------------------------------------------------- /picketlink-levels-complex/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | --------------------------------------------------------------------------------