@app.route("<STR_LIT>")<EOL>def bearer_auth():
authorization = request.headers.get("<STR_LIT>")<EOL>if not (authorization and authorization.startswith("<STR_LIT>")):<EOL><INDENT>response = app.make_response("<STR_LIT>")<EOL>response.headers["<STR_LIT>"] = "<STR_LIT>"<EOL>response.status_code = <NUM_LIT><EOL>return response<EOL><DEDENT>slice_start = len("<STR_LIT>")<EOL>token = authorization[slice_start:]<EOL>return jsonify(authenticated=True, token=token)<EOL>
Prompts the user for authorization using bearer authentication.
    ---
    tags:
      - Auth
    parameters:
      - in: header
        name: Authorization
        schema:
          type: string
    produces:
      - application/json
    responses:
      200:
        description: Sucessful authentication.
      401:
        description: Unsuccessful authentication.