<commit_before># Authenticating with Aperao CAS

## Introduction

Documize can delegate user authentication to aperao CAS integration.

This document assumes that the Documize administrator has installed and is familiar with CAS server.

https://www.apereo.org/projects/cas

Documize is tested against the CAS version 5.3.x.

## Configuring Documize

CAS authentication is configured and enabled from Settings.

Type in the CAS Server URL, Redirect URL.

* **CAS Server URL**: The CAS host address, eg: `https://cas.example.com`
* **Redirect URL**: The CAS authorize callback URL. If your documize URL is `https://example.documize.com,` then redirect URL is `https://example.documize.com/auth/cas`.
<commit_msg>add run cas server section<commit_after># Authenticating with Aperao CAS

## Introduction

Documize can delegate user authentication to aperao CAS integration.

This document assumes that the Documize administrator has installed and is familiar with CAS server.

https://www.apereo.org/projects/cas

Documize is tested against the CAS version 5.3.x.

## Run a CAS server

Refer to the following like [https://apereo.github.io/cas/5.0.x/installation/Docker-Installation.html](https://apereo.github.io/cas/5.0.x/installation/Docker-Installation.html) to run CAS server. Usually the server address is `https://localhost:8443/cas".

## Configuring Documize

CAS authentication is configured and enabled from Settings.

Type in the CAS Server URL, Redirect URL.

* **CAS Server URL**: The CAS host address, eg: `https://localhost:8443/cas`
* **Redirect URL**: The CAS authorize callback URL. If your documize URL is `https://example.documize.com,` then redirect URL is `https://example.documize.com/auth/cas`.

{'fraction_non_alphanumeric': 0.09731934731934731, 'fraction_numerical': 0.009324009324009324, 'mean_word_length': 4.574675324675325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6241856', 'n_tokens_mistral': 522, 'n_tokens_neox': 487, 'n_words': 192}