Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Plugin and Content Directories #18

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: 'build-test'
on:
pull_request: # Triggers on pull requests
push: # Triggers on pushes to specified branches
branches:
- main
- development
- 'releases/*' # All branches under releases

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run plugin check
uses: wordpress/plugin-check-action@v1
name: 'build-test'
on:
pull_request: # Triggers on pull requests
push: # Triggers on pushes to specified branches
branches:
- main
- development
- 'releases/*' # All branches under releases
jobs:
plugin-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Run plugin check
uses: wordpress/plugin-check-action@v1.0.7
220 changes: 110 additions & 110 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
# Scouting Nederland Wordpress SOL Login
[![Wordpress-Supported](https://img.shields.io/wordpress/v/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Version](https://img.shields.io/wordpress/plugin/v/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Downloads](https://img.shields.io/wordpress/plugin/dt/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Active-Installs](https://img.shields.io/wordpress/plugin/installs/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)

**Contributors:** [jobvk](https://github.com/jobvk) \
**Requires at least:** 6.4.3 \
**Tested up to:** 6.6.1 \
**Stable tag:** 0.0.1 \
**Tags:** scouting, scouting nederland, sol, openid connect, oidc \
**License:** GPLv3 \
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html

Connect your Wordpress website to the Scouting Nederland OpenID Connect server.

## Index

* [Description](#description)
* [Screenshots](#screenshots)
* [Installation](#installation)
* [Configuration](#configuration)
* [Shortcodes](#shortcodes)
* [Frequently-Asked-Questions](#frequently-asked-questions)
* [Upgrade-Notice](#upgrade-notice)
* [Translations](#translations)

## Description

This plugin allows users to authenticate and login to their WordPress websites using their Scouting Nederland OpenID Connect credentials.

It provides a secure and convenient way for Scouting Nederland members to access their WordPress sites without the need for separate login credentials.

With this plugin, users can seamlessly integrate their Scouting Nederland accounts with their WordPress websites, enhancing the user experience and simplifying the login process.

Bugs and feature-requests can go to: [GitHub](https://github.com/Scouting-nl/OpenID-Connect-Wordpress/issues) or [WordPress](https://wordpress.org/support/plugin/scouting-openid-connect)

## Screenshots

### 1. wp-login.php with scouting-login

![wp-login.php with scouting-login](assets/screenshot-1.png)

### 2. Settings page

![settings page](assets/screenshot-2.png)

### 2. Support page

![support page](assets/screenshot-3.png)

## Installation

1. Log in to your WordPress admin dashboard.
2. Navigate to Plugins > Add New.
3. In the search bar, type the name of the plugin you want to install.
4. Find the plugin in the search results and click Install Now.
5. After the plugin is installed, click Activate.

## Configuration

Make sure you have the role `webmaster` in [sol.scouting.nl](https://sol.scouting.nl).

1. Go to [login.scouting.nl](https://login.scouting.nl), click on `Managed websites` and click on `Add OpenID Connect connection`.
2. Add the name of your group/website.
3. Add the Redirect URI, for example: https://example.com/.
4. Add the Post Logout Redirect URI, for example: https://example.com/.
5. Select the scopes you want to use. The `email` scope is required; the others are optional.
6. Select the organizations that can log in. \
If your organization has sub-organizations, you can also select `Allow suborganizations.`
7. Press `Add Website.`
8. Find the website you just created and click on ⓘ.
9. Copy the `Client ID`, `Client Secret`, and the `Scopes` to your website.
10. Fill in the OpenID Connect Settings with the copied data. \
Make sure the required scopes, `openid` and `email`, are present.
11. Fill in the General Settings. \
If you want to store the name, birthdate, or gender, use the scope `profile`. \
If you also want the SOL ID, use the scope `membership`.
12. Press `Save Settings`.
13. Log out and try to log in with the Scouts Login button.

## Shortcodes

### Link
This shortcode will create a login url

`[scouting_oidc_link]`

### button
This shortcode will create a login button

`[scouting_oidc_button]`

## Frequently Asked Questions

### Do I need to be part of Scouting Nederland to use this?

Yes, the OpenID Connect server is used to identify people and only allows access when they are members of the appropriate organization within Scouting Nederland. To set up the system at Scouting Nederland, you need webmaster privileges for your scouting group.

### Are there settings for this plugin?

Yes, there is a settings page where you can set up a redirect after login, configure the name the user gets in their profile, and enforce that.

### Can roles also be imported into WordPress from SOL?

Currently not, but this is planned for a future update of this plugin.

## Translations

* Dutch
# Scouting Nederland Wordpress SOL Login
[![Wordpress-Supported](https://img.shields.io/wordpress/v/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Version](https://img.shields.io/wordpress/plugin/v/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Downloads](https://img.shields.io/wordpress/plugin/dt/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
[![Wordpress-Active-Installs](https://img.shields.io/wordpress/plugin/installs/scouting-openid-connect.svg)](https://wordpress.org/plugins/scouting-openid-connect/)
**Contributors:** [jobvk](https://github.com/jobvk) \
**Requires at least:** 6.4.3 \
**Tested up to:** 6.6.1 \
**Stable tag:** 0.0.1 \
**Tags:** scouting, scouting nederland, sol, openid connect, oidc \
**License:** GPLv3 \
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html
Connect your Wordpress website to the Scouting Nederland OpenID Connect server.
## Index
* [Description](#description)
* [Screenshots](#screenshots)
* [Installation](#installation)
* [Configuration](#configuration)
* [Shortcodes](#shortcodes)
* [Frequently-Asked-Questions](#frequently-asked-questions)
* [Upgrade-Notice](#upgrade-notice)
* [Translations](#translations)
## Description
This plugin allows users to authenticate and login to their WordPress websites using their Scouting Nederland OpenID Connect credentials.
It provides a secure and convenient way for Scouting Nederland members to access their WordPress sites without the need for separate login credentials.
With this plugin, users can seamlessly integrate their Scouting Nederland accounts with their WordPress websites, enhancing the user experience and simplifying the login process.
Bugs and feature-requests can go to: [GitHub](https://github.com/Scouting-nl/scouting-openid-connect/issues) or [WordPress](https://wordpress.org/support/plugin/scouting-openid-connect)
## Screenshots
### 1. wp-login.php with scouting-login
![wp-login.php with scouting-login](assets/screenshot-1.png)
### 2. Settings page
![settings page](assets/screenshot-2.png)
### 2. Support page
![support page](assets/screenshot-3.png)
## Installation
1. Log in to your WordPress admin dashboard.
2. Navigate to Plugins > Add New.
3. In the search bar, type the name of the plugin you want to install.
4. Find the plugin in the search results and click Install Now.
5. After the plugin is installed, click Activate.
## Configuration
Make sure you have the role `webmaster` in [sol.scouting.nl](https://sol.scouting.nl).
1. Go to [login.scouting.nl](https://login.scouting.nl), click on `Managed websites` and click on `Add OpenID Connect connection`.
2. Add the name of your group/website.
3. Add the Redirect URI, for example: https://example.com/.
4. Add the Post Logout Redirect URI, for example: https://example.com/.
5. Select the scopes you want to use. The `email` scope is required; the others are optional.
6. Select the organizations that can log in. \
If your organization has sub-organizations, you can also select `Allow suborganizations.`
7. Press `Add Website.`
8. Find the website you just created and click on ⓘ.
9. Copy the `Client ID`, `Client Secret`, and the `Scopes` to your website.
10. Fill in the OpenID Connect Settings with the copied data. \
Make sure the required scopes, `openid` and `email`, are present.
11. Fill in the General Settings. \
If you want to store the name, birthdate, or gender, use the scope `profile`. \
If you also want the SOL ID, use the scope `membership`.
12. Press `Save Settings`.
13. Log out and try to log in with the Scouts Login button.
## Shortcodes
### Link
This shortcode will create a login url
`[scouting_oidc_link]`
### button
This shortcode will create a login button
`[scouting_oidc_button]`
## Frequently Asked Questions
### Do I need to be part of Scouting Nederland to use this?
Yes, the OpenID Connect server is used to identify people and only allows access when they are members of the appropriate organization within Scouting Nederland. To set up the system at Scouting Nederland, you need webmaster privileges for your scouting group.
### Are there settings for this plugin?
Yes, there is a settings page where you can set up a redirect after login, configure the name the user gets in their profile, and enforce that.
### Can roles also be imported into WordPress from SOL?
Currently not, but this is planned for a future update of this plugin.
## Translations
* Dutch
* English
Binary file modified assets/screenshot-3-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-3-nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-4-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-4-nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified languages/scouting-openid-connect-nl_NL.mo
Binary file not shown.
12 changes: 6 additions & 6 deletions languages/scouting-openid-connect-nl_NL.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Scouting OpenID Connect 0.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/jobvk/scouting-openid-connect/"
"issues\n"
"POT-Creation-Date: 2024-10-30 23:50+0100\n"
"PO-Revision-Date: 2024-10-30 23:50+0100\n"
"POT-Creation-Date: 2024-11-04 21:19+0100\n"
"PO-Revision-Date: 2024-11-04 21:19+0100\n"
"Last-Translator: Job van Koeveringe <[email protected]>\n"
"Language-Team: Job van Koeveringe <[email protected]>\n"
"Language: nl_NL\n"
Expand Down Expand Up @@ -187,22 +187,22 @@ msgstr "Achternaam"
msgid "Username"
msgstr "Gebruikersnaam"

#: settings/general.php:183
#: settings/general.php:182
msgid ""
"This prefix will be added to the username of all Scouting Nederland users"
msgstr ""
"Dit voorvoegsel wordt toegevoegd aan de gebruikersnaam van alle Scouting "
"Nederland gebruikers"

#: settings/general.php:189
#: settings/general.php:188
msgid "Default (no action)"
msgstr "Standaard (geen actie)"

#: settings/general.php:190
#: settings/general.php:189
msgid "Frontpage"
msgstr "Voorpagina"

#: settings/general.php:191
#: settings/general.php:190
msgid "Dashboard"
msgstr "Dashboard"

Expand Down
Loading