Skip to content

private method `read_jwk' called for #<Options:0x00000001313a3e28> (NoMethodError) #2

Description

@hugoib

I ran into errors while running the ./generate-dpop-proof script on Mac:

image

I modified the script here:

@key = self.read_jwk(file)

to:
@key = send(:read_jwk, file) # Use send to call the private method

Reasoning:

Using send: The send method allows calling both public and private methods dynamically. By using send(:read_jwk, file), we explicitly call the private method read_jwk within the on method block.
Private Methods: The read_jwk method remains private, maintaining encapsulation, but it is called in a controlled manner.
Additional Notes

This solved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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