docs: fix typo (#566)

This commit is contained in:
İlker Göktuğ Öztürk 2020-03-26 21:55:55 +03:00 committed by GitHub
parent 799d1ad162
commit 297b0fd6c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ As mentioned above, Pomerium supports mixing and matching configuration. For exa
## Run ## Run
Finally, source the the configuration `env` file and run pomerium specifying the `config.yaml` . Finally, source the configuration `env` file and run pomerium specifying the `config.yaml` .
```bash ```bash
source ./env source ./env

View file

@ -64,7 +64,7 @@ The application interacting with Pomerium must manage the following workflow. Co
1. The script or application opens a browser or redirects the user to the returned login page. 1. The script or application opens a browser or redirects the user to the returned login page.
1. The user completes the identity providers login flow. 1. The user completes the identity providers login flow.
1. The identity provider makes a callback to pomerium's authenticate service (e.g. `authenticate.corp.domain.example`) . 1. The identity provider makes a callback to pomerium's authenticate service (e.g. `authenticate.corp.domain.example`) .
1. Pomerium's authenticate service creates a user session and redirect token, then redirects back to the the managed endpoint (e.g. `httpbin.corp.domain.example`) 1. Pomerium's authenticate service creates a user session and redirect token, then redirects back to the managed endpoint (e.g. `httpbin.corp.domain.example`)
1. Pomerium's proxy service and makes a callback request to the original `redirect_uri` with the user session and refresh token as arguments. 1. Pomerium's proxy service and makes a callback request to the original `redirect_uri` with the user session and refresh token as arguments.
1. The script or application is responsible for handling that http callback request, and securely handling the callback session (`pomerium_jwt`) and refresh token (`pomerium_refresh_token`) queryparams. 1. The script or application is responsible for handling that http callback request, and securely handling the callback session (`pomerium_jwt`) and refresh token (`pomerium_refresh_token`) queryparams.
1. The script or application can now make any requests as normal, by setting the `Authorization: Pomerium ${pomerium_jwt}` header. 1. The script or application can now make any requests as normal, by setting the `Authorization: Pomerium ${pomerium_jwt}` header.

View file

@ -133,7 +133,7 @@ func New(o *Options) (*Store, error) {
// Get, we have to be a little creative in how we smuggle in value using // Get, we have to be a little creative in how we smuggle in value using
// context. // context.
func (s Store) Set(ctx context.Context, k string, v []byte) error { func (s Store) Set(ctx context.Context, k string, v []byte) error {
// smuggle the the value pair as a context value // smuggle the value pair as a context value
ctx = newContext(ctx, v) ctx = newContext(ctx, v)
if err := s.db.Get(ctx, k, groupcache.AllocatingByteSliceSink(&v)); err != nil { if err := s.db.Get(ctx, k, groupcache.AllocatingByteSliceSink(&v)); err != nil {
return fmt.Errorf("autocache: set %s failed: %w", k, err) return fmt.Errorf("autocache: set %s failed: %w", k, err)