This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash +x | |
| wget https://raw.githubusercontent.com/mevan-karu/pom_version_property_finder/master/src/version_property_finder.py | |
| wget https://gist.githubusercontent.com/janakamarasena/d84e5383805a352cd186121f2f491435/raw/fed8a22868e1f346495be849bb75982b5e95ca9f/testng.xml | |
| echo "" | |
| echo "==========================================================" | |
| PR_LINK=${PR_LINK%/} | |
| echo " PR_LINK: $PR_LINK" | |
| echo "::warning::Build ran for PR $PR_LINK" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onLoginRequest = function onLoginRequest(context) { | |
| var isLinkRequest = false; | |
| if (context.request.params.isLinkRequest !== null) { | |
| // Get the isLinkRequest param value from the request | |
| isLinkRequest = context.request.params.isLinkRequest[0]; | |
| } | |
| var fedIdp; | |
| if (isLinkRequest == "true") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onLoginRequest = function onLoginRequest(context) { | |
| var isLinkRequest = false; | |
| if (context.request.params.isLinkRequest !== null) { | |
| // Get the isLinkRequest param value from the request | |
| isLinkRequest = context.request.params.isLinkRequest[0]; | |
| } | |
| var fedIdp; | |
| if (isLinkRequest == "true") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> | |
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| <jsp:directive.include file="../includes/init-url.jsp"/> | |
| <div> | |
| <h2> | |
| We found an already registerd account with the email "<c:out value='${requestScope.data["email"]}'/>" do you want to link it? | |
| </h2> | |
| </div> | |
| <div class="boarder-all "> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onLoginRequest = function onLoginRequest(context) { | |
| var fedUser; | |
| executeStep(1, | |
| { | |
| onSuccess: function (context) { | |
| var idpName = context.steps[1].idp; | |
| // Only execute this flow when the user login from the google idp. | |
| // If you want to target all your idps you can use something like |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onLoginRequest = function onLoginRequest(context) { | |
| var fedUser; | |
| executeStep(1, | |
| { | |
| onSuccess: function (context) { | |
| var idpName = context.steps[1].idp; | |
| // Only execute this flow when the user login from the google idp. | |
| // If you want to target all your idps you can use something like |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onLoginRequest = function onLoginRequest(context) { | |
| var isLinkRequest = false; | |
| if (context.request.params.isLinkRequest !== null) { | |
| isLinkRequest = context.request.params.isLinkRequest[0]; | |
| } | |
| var localUser; | |
| executeStep(1, | |
| { | |
| onSuccess: function (context) { | |
| // Get the local user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "jwt" | |
| key_file = "Path to the private key" | |
| team_id = "Your Team ID" | |
| client_id = "The Service ID of the service you created" | |
| key_id = "The Key ID of the private key" | |
| validity_period = 180 # In days. Max 180 (6 months) according to Apple docs. | |
| private_key = OpenSSL::PKey::EC.new IO.read key_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| final String AUTH_FAILURE_PARAM = "authFailure"; | |
| final String AUTH_FAILURE_MSG_PARAM = "authFailureMsg"; | |
| ... | |
| if (StringUtils.isNotEmpty(request.getParameter(AUTH_FAILURE_PARAM)) | |
| && "true".equals(request.getParameter(AUTH_FAILURE_PARAM))) { | |
| loginFailed = "true"; | |
| if (request.getParameter(AUTH_FAILURE_MSG_PARAM) != null) { | |
| errorMessage = request.getParameter(AUTH_FAILURE_MSG_PARAM); | |
| if (errorMessage.equalsIgnoreCase("login.fail.message")) { |