forked from apereo/cas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
378 additions
and
151 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,8 +67,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v2 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -144,8 +144,8 @@ jobs: | |
- checkstyleTest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v2 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -454,8 +454,8 @@ jobs: | |
needs: [cache] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v2 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -668,28 +668,28 @@ jobs: | |
|
||
########################################################################## | ||
|
||
renovate-dependency-updates: | ||
runs-on: ubuntu-latest | ||
needs: [cache] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JDK_CURRENT }} | ||
- name: Initialize | ||
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: renovatebot/[email protected] | ||
if: ${{ !contains(github.head_ref, 'renovate') && github.event_name == 'push' }} | ||
with: | ||
token: ${{ secrets.RENOVATE_TOKEN }} | ||
configurationFile: .github/renovate.js | ||
# renovate-dependency-updates: | ||
# runs-on: ubuntu-latest | ||
# needs: [cache] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Set up JDK | ||
# uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: ${{ env.JDK_CURRENT }} | ||
# - name: Initialize | ||
# run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | ||
# - uses: actions/cache@v1 | ||
# with: | ||
# path: ~/.gradle/caches | ||
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-gradle- | ||
# - uses: renovatebot/[email protected] | ||
# if: ${{ !contains(github.head_ref, 'renovate') && github.event_name == 'push' }} | ||
# with: | ||
# token: ${{ secrets.RENOVATE_TOKEN }} | ||
# configurationFile: .github/renovate.js | ||
|
||
########################################################################## | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
29 changes: 29 additions & 0 deletions
29
...r-support-captcha-core/src/main/java/org/apereo/cas/web/flow/InitializeCaptchaAction.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.apereo.cas.web.flow; | ||
|
||
import org.apereo.cas.configuration.CasConfigurationProperties; | ||
import org.apereo.cas.web.support.WebUtils; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import lombok.val; | ||
import org.springframework.webflow.action.AbstractAction; | ||
import org.springframework.webflow.action.EventFactorySupport; | ||
import org.springframework.webflow.execution.Event; | ||
import org.springframework.webflow.execution.RequestContext; | ||
|
||
/** | ||
* This is {@link InitializeCaptchaAction}. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 6.2.0 | ||
*/ | ||
@RequiredArgsConstructor | ||
public class InitializeCaptchaAction extends AbstractAction { | ||
private final CasConfigurationProperties casProperties; | ||
|
||
@Override | ||
protected Event doExecute(final RequestContext requestContext) { | ||
val googleRecaptcha = casProperties.getGoogleRecaptcha(); | ||
WebUtils.putRecaptchaPropertiesFlowScope(requestContext, googleRecaptcha); | ||
return new EventFactorySupport().success(this); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.