Download the PHP package dpc-sdp/tide_authenticated_content without Composer

On this page you can find all versions of the php package dpc-sdp/tide_authenticated_content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tide_authenticated_content

tide_authenticated_content

Authenticated Content feature for Tide distribution.

CircleCI

Register

Configuration

Drupal Config

Enable Authenticated Content Field on Landing Page

/admin/structure/types/manage/landing_page/form-display

Add Authenticated Content Login Paragraph to Landing Page

admin/structure/types/manage/landing_page/fields/node.landing_page.field_landing_page_component

Create and install private key

paste key here: /admin/config/system/keys/add

Set key for JWT Issuer

/admin/config/system/jwt

Configuration Options

The following config options exist and can be exported for your site: backend_user_roles is a list of Drupal Roles that are considered "Backend" roles. Users who use the password reset feature who are not in one of these roles will have the URL in their reset email switched to the Front End url defined on the site defined in the tide_site module for the current Drupal installation.

backend_user_roles: 
  - "administrator"
  - "editor"
  - "approver"

auto_apply_user_roles is similar to backend_user_roles. Roles defined in this list will be automatically assigned to new users registered via the API.

auto_apply_user_roles:
  - "member"

default_site_id is the default site ID to use if no other site is defined against individual users. This works together with backend_user_roles to define the Front End url to use on the outgoing password reset email.

default_site_id: 1

block_be_user_registration is a boolean. If it's set to 1, the ability for users to register via the Drupal interface will be blocked. This is to allow the site Drupal settings to be set to Allow user registrations via the API, whilst blocking registration for the CMS.

block_be_user_registration: 1

protect_jsonapi_user_route is a boolean. Usees the jsonapi_user_route value to protect specific json api routes.

protect_jsonapi_user_route: 1

jsonapi_user_route is an array of strings. Add the routes that you need to protect, eg /api/v1/user/user route will be protected from external access.

jsonapi_user_route:
  - "/api/v1/user/user"

Usage - Content Admin

Add Term

/admin/structure/taxonomy/manage/authenticated_content/add

Add Authenticated Content

/node/add/landing_page

Publish Page

Add Authenticated Content - Login Page

/node/add/landing_page

Publish Page

Usage (API Authentication)

Register

POST: /api/v1/user/register

Success status 200

Failed status 400

Error status 500 HTML/Text Error

Login Request

POST /api/v1/user/login?_format=json

Status Code: 200

Failed Status: 400

Password Reset (Request)

POST: /api/v1/user/request_reset

OR

Success: 200

Failed: 400

Password Reset

POST: /api/v1/user/reset_password

Success: 200

Failed: 400

TODOs


All versions of tide_authenticated_content with dependencies

PHP Build Version
Package Version
Requires dpc-sdp/tide_core Version ^4.0.0
dpc-sdp/tide_event Version ^4.0.0
dpc-sdp/tide_landing_page Version ^4.0.0
dpc-sdp/tide_media Version ^4.0.0
dpc-sdp/tide_site Version ^4.0.0
drupal/jsonapi_extras Version ^3.8
drupal/jwt Version ^1.0
drupal/permissions_by_term Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dpc-sdp/tide_authenticated_content contains the following files

Loading the files please wait ....