Skip to content

enc_id_token is not available any more #545

@asyd

Description

@asyd

Using version 1.7, I used to inject user token with:

ngx.req.set_header("Authorization", "Bearer " .. session.data.enc_id_token)

However, when upgraded to 1.8, the same code give:

lua entry thread aborted: runtime error: access_by_lua(nginx.conf:62):30: attempt to concatenate field 'enc_id_token' (a nil value)

But I noticed it's available in

session.data[1][1].enc_id_token

Is is an expected behavior?

Thanks

Versions:

  • openresty:1.27.1.1
  • lua-resty-openidc:1.8.0-1
  • lua-resty-session:4.1.1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions