What is the standard method for generating a nonce in Python?

前端 未结 5 1509
清歌不尽
清歌不尽 2021-02-12 12:48

Can someone share the best practices for creating a nonce for an OAuth request in Python?

5条回答
  •  臣服心动
    2021-02-12 13:06

    Here's what rauth does. There's not really hard and fast rules here. The spec doesn't seem too opinionated. Your constraints are that the value, being a nonce, should be unique. Other than that, assuming the provider doesn't complain, you can use whatever method you like.

提交回复
热议问题